Core/GameObjects: Fixed GameObjectAddon loading

This commit is contained in:
Shauren
2015-05-30 22:32:28 +02:00
parent 2f0c293266
commit bf37446b3c

View File

@@ -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)
{