From 9aebfaf722127fa6477782aeac7534c48ba0bffb Mon Sep 17 00:00:00 2001 From: kandera Date: Wed, 3 Apr 2013 03:37:56 -0400 Subject: [PATCH] DB/Commands: fix the use of gobject info when used with a game object entry --- sql/updates/world/2013_04_03_00_world_command.sql | 1 + src/server/scripts/Commands/cs_gobject.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 sql/updates/world/2013_04_03_00_world_command.sql diff --git a/sql/updates/world/2013_04_03_00_world_command.sql b/sql/updates/world/2013_04_03_00_world_command.sql new file mode 100644 index 0000000000..a94efebc8e --- /dev/null +++ b/sql/updates/world/2013_04_03_00_world_command.sql @@ -0,0 +1 @@ +UPDATE `world`.`command` SET `help`='Syntax: .gobject info [$object_entry]\r \r Query Gameobject information for selected gameobject or given entry.' WHERE `name`='gobject info'; diff --git a/src/server/scripts/Commands/cs_gobject.cpp b/src/server/scripts/Commands/cs_gobject.cpp index f99e51fb26..12fd4250eb 100644 --- a/src/server/scripts/Commands/cs_gobject.cpp +++ b/src/server/scripts/Commands/cs_gobject.cpp @@ -592,7 +592,8 @@ public: entry = object->GetEntry(); else entry = atoi((char*)args); - } + } else + entry = atoi((char*)args); GameObjectTemplate const* gameObjectInfo = sObjectMgr->GetGameObjectTemplate(entry);