diff options
| author | Shauren <shauren.trinity@gmail.com> | 2014-10-30 20:02:42 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2014-10-30 20:02:42 +0100 |
| commit | 785f0bf5c0dc945af9da494559955ac69e5a7198 (patch) | |
| tree | 976fe868323bf4a5a0378ec8f6fe671836a4f42a /src/server/scripts/Commands | |
| parent | 6881fd6146285258e5f8476e9cbc8f124d61b15e (diff) | |
Core/GameObjects: Updated GameObjectTemplate data structure
Diffstat (limited to 'src/server/scripts/Commands')
| -rw-r--r-- | src/server/scripts/Commands/cs_gobject.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/server/scripts/Commands/cs_gobject.cpp b/src/server/scripts/Commands/cs_gobject.cpp index 7b293efbefe..5a00267d6aa 100644 --- a/src/server/scripts/Commands/cs_gobject.cpp +++ b/src/server/scripts/Commands/cs_gobject.cpp @@ -618,10 +618,7 @@ public: type = gameObjectInfo->type; displayId = gameObjectInfo->displayId; name = gameObjectInfo->name; - if (type == GAMEOBJECT_TYPE_CHEST) - lootId = gameObjectInfo->chest.lootId; - else if (type == GAMEOBJECT_TYPE_FISHINGHOLE) - lootId = gameObjectInfo->fishinghole.lootId; + lootId = gameObjectInfo->GetLootId(); handler->PSendSysMessage(LANG_GOINFO_ENTRY, entry); handler->PSendSysMessage(LANG_GOINFO_TYPE, type); |
