Core/GameObjects: Initialize gameobject type before creating its model

This commit is contained in:
luis
2026-03-22 19:31:06 -03:00
parent a30688baab
commit ee2721db00
@@ -1093,9 +1093,9 @@ bool GameObject::Create(uint32 entry, Map* map, Position const& pos, QuaternionD
SetDisplayId(goInfo->displayId);
CreateModel();
// GAMEOBJECT_BYTES_1, index at 0, 1, 2 and 3
SetGoType(GameobjectTypes(goInfo->type));
CreateModel();
m_prevGoState = goState;
SetGoState(goState);
SetGoArtKit(artKit);