Skip to content

Commit 02e4fb5

Browse files
TraeshShauren
authored andcommitted
Core/GameObjects: Initialize gameobject type before creating its model
1 parent db69834 commit 02e4fb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/game/Entities/GameObject/GameObject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,9 +1076,9 @@ bool GameObject::Create(uint32 entry, Map* map, Position const& pos, QuaternionD
10761076

10771077
SetDisplayId(goInfo->displayId);
10781078

1079-
CreateModel();
10801079
// GAMEOBJECT_BYTES_1, index at 0, 1, 2 and 3
10811080
SetGoType(GameobjectTypes(goInfo->type));
1081+
CreateModel();
10821082
m_prevGoState = goState;
10831083
SetGoState(goState);
10841084
SetGoArtKit(artKit);

0 commit comments

Comments
 (0)