aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2015-05-30 22:32:28 +0200
committerShauren <shauren.trinity@gmail.com>2015-05-30 22:32:28 +0200
commitbf37446b3c2ed73b4d3aa9e227d3eff5c53b378b (patch)
treeae5b0e21b29eb556388c571d8f303280e501dba4
parent2f0c293266837eca217d2bff1df8b78ac6e12867 (diff)
Core/GameObjects: Fixed GameObjectAddon loading
-rw-r--r--src/server/game/Entities/GameObject/GameObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp
index e35f4fb889b..66c6db567d0 100644
--- a/src/server/game/Entities/GameObject/GameObject.cpp
+++ b/src/server/game/Entities/GameObject/GameObject.cpp
@@ -310,7 +310,7 @@ bool GameObject::Create(ObjectGuid::LowType guidlow, uint32 name_id, Map* map, u
break;
}
- if (GameObjectAddon const* addon = sObjectMgr->GetGameObjectAddon(guidlow))
+ if (GameObjectAddon const* addon = sObjectMgr->GetGameObjectAddon(GetSpawnId()))
{
if (addon->InvisibilityValue)
{