aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/Commands/cs_gobject.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/scripts/Commands/cs_gobject.cpp b/src/server/scripts/Commands/cs_gobject.cpp
index 027c72e1c23..4a20f423892 100644
--- a/src/server/scripts/Commands/cs_gobject.cpp
+++ b/src/server/scripts/Commands/cs_gobject.cpp
@@ -528,6 +528,8 @@ public:
displayId = gameObjectInfo->displayId;
name = gameObjectInfo->name;
lootId = gameObjectInfo->GetLootId();
+ if (type == GAMEOBJECT_TYPE_CHEST && !lootId)
+ lootId = gameObjectInfo->chest.chestPersonalLoot;
// If we have a real object, send some info about it
if (thisGO)