mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-20 06:49:29 -04:00
Fix possible crash in .gobject info.
--HG-- branch : trunk
This commit is contained in:
+2
-2
@@ -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