Skip to content
Browse files

DB/Commands: fix the use of gobject info when used with a game object…

… entry
  • Loading branch information...
1 parent b44f7cd commit 9aebfaf722127fa6477782aeac7534c48ba0bffb @kandera kandera committed Apr 3, 2013
1 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';
TrinityCore member
Warpten added a note Apr 3, 2013

Nope, no database name :P

TrinityCore member
Aokromes added a note Apr 3, 2013

To late this was fixed long time ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 src/server/scripts/Commands/cs_gobject.cpp
@@ -592,7 +592,8 @@ class gobject_commandscript : public CommandScript
entry = object->GetEntry();
entry = atoi((char*)args);
- }
+ } else
+ entry = atoi((char*)args);
GameObjectTemplate const* gameObjectInfo = sObjectMgr->GetGameObjectTemplate(entry);

0 comments on commit 9aebfaf

Please sign in to comment.
Something went wrong with that request. Please try again.