Fix possible crash in .gobject info.

--HG--
branch : trunk
This commit is contained in:
p0wer
2010-03-02 17:44:59 -06:00
parent fbe0f4ea2b
commit 0f4855d8f3

View File

@@ -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);