Skip to content

Commit

Permalink
Core/GameObjects: Fixed GameObjectAddon loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Shauren committed May 30, 2015
1 parent 2f0c293 commit bf37446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Entities/GameObject/GameObject.cpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit bf37446

Please sign in to comment.