mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Fix possible crash in .gobject info.
--HG-- branch : trunk
This commit is contained in:
@@ -2133,8 +2133,8 @@ bool ChatHandler::HandleGOInfoCommand(const char* args)
|
||||
|
||||
if(!*args)
|
||||
{
|
||||
WorldObject * obj = getSelectedObject();
|
||||
entry = obj->GetEntry();
|
||||
if(WorldObject * obj = getSelectedObject())
|
||||
entry = obj->GetEntry();
|
||||
}
|
||||
else
|
||||
entry = atoi((char*)args);
|
||||
|
||||
Reference in New Issue
Block a user