Core/GameObjects: Initialize gameobject type before creating its model

This commit is contained in:
Traesh
2026-03-21 15:27:19 +01:00
committed by Shauren
parent db69834838
commit 02e4fb5f82

View File

@@ -1076,9 +1076,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);