diff options
| author | Shauren <shauren.trinity@gmail.com> | 2025-10-03 21:01:05 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2025-10-04 01:00:14 +0200 |
| commit | 070d80372f0a6868d02a27175c4eabc8acf02fb0 (patch) | |
| tree | c52796c1d553268a43dce5b6831c7766d76c7958 /src/server/scripts/Commands | |
| parent | a99868bf2fc7e327ccc1a0450d6d4ef86cee87ef (diff) | |
Core/Misc: Reduce differences between branches
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 7775ad5b543..8d62192ec5a 100644 --- a/src/server/scripts/Commands/cs_gobject.cpp +++ b/src/server/scripts/Commands/cs_gobject.cpp @@ -538,10 +538,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(); // If we have a real object, send some info about it if (thisGO) |
