aboutsummaryrefslogtreecommitdiff
path: root/src/game/GameObject.cpp
diff options
context:
space:
mode:
authorKudlaty <none@none>2009-09-04 05:11:27 +0200
committerKudlaty <none@none>2009-09-04 05:11:27 +0200
commit8c255266e7c38096ddf9d3e29eadd35ca46e4c4d (patch)
tree9e8f2190bffbf24a1db5970e9ef768a4c8e65fd1 /src/game/GameObject.cpp
parent2465ef00a24118d75edcef60600f4c1603a6ac3b (diff)
Fix some issues with game object create according to last patch. Thx to NoFantasy and DearScorpion
--HG-- branch : trunk
Diffstat (limited to 'src/game/GameObject.cpp')
-rw-r--r--src/game/GameObject.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp
index b7c46694344..c60ec02bab9 100644
--- a/src/game/GameObject.cpp
+++ b/src/game/GameObject.cpp
@@ -173,15 +173,16 @@ bool GameObject::Create(uint32 guidlow, uint32 name_id, Map *map, uint32 phaseMa
SetUInt32Value(GAMEOBJECT_FACTION, goinfo->faction);
SetUInt32Value(GAMEOBJECT_FLAGS, goinfo->flags);
- SetUInt16Value(GAMEOBJECT_DYNAMIC, 1, uint16(-1));
SetEntry(goinfo->id);
SetUInt32Value(GAMEOBJECT_DISPLAYID, goinfo->displayId);
+ // GAMEOBJECT_BYTES_1, index at 0, 1, 2 and 3
SetGoState(go_state);
SetGoType(GameobjectTypes(goinfo->type));
+ SetGoArtKit(0); // unknown what this is
SetGoAnimProgress(animprogress);
SetByteValue(GAMEOBJECT_BYTES_1, 2, artKit);