mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 03:32:28 -04:00
Core/GameObjects: Initialize gameobject type before creating its model
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user