fix(Core/Gameobjects):bloading addon table. (#5885)

Fixed #5771.
This commit is contained in:
UltraNix
2021-05-16 11:58:38 +02:00
committed by GitHub
parent 8168f9aea0
commit 0d699222de

View File

@@ -266,7 +266,7 @@ bool GameObject::Create(ObjectGuid::LowType guidlow, uint32 name_id, Map* map, u
return false;
}
GameObjectAddon const* addon = sObjectMgr->GetGameObjectAddon(guidlow);
GameObjectAddon const* addon = sObjectMgr->GetGameObjectAddon(GetSpawnId());
// hackfix for the hackfix down below
switch (goinfo->entry)