aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Level2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp
index c7a9bcd89c6..8d37dc74cf8 100644
--- a/src/game/Level2.cpp
+++ b/src/game/Level2.cpp
@@ -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);