aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level2.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-27 18:36:10 -0500
committermegamage <none@none>2009-04-27 18:36:10 -0500
commit5ac67c27f71a7b53fbce92ffdab3adb62b6baf0c (patch)
tree3ca1dc67f90b8522f64b894c5000ac8facc3cf9c /src/game/Level2.cpp
parentf9c40474410c5d54e408f5074b2dee1ff329c0d5 (diff)
[7715] Provided way for scripts set alternative gameobject state for client show. Author: VladimirMangos
Also use enum for gsmeobject states. --HG-- branch : trunk
Diffstat (limited to 'src/game/Level2.cpp')
-rw-r--r--src/game/Level2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp
index a748cf9cd3d..1d019e3dfbb 100644
--- a/src/game/Level2.cpp
+++ b/src/game/Level2.cpp
@@ -786,7 +786,7 @@ bool ChatHandler::HandleGameObjectAddCommand(const char* args)
GameObject* pGameObj = new GameObject;
uint32 db_lowGUID = objmgr.GenerateLowGuid(HIGHGUID_GAMEOBJECT);
- if(!pGameObj->Create(db_lowGUID, goI->id, map, chr->GetPhaseMaskForSpawn(), x, y, z, o, 0.0f, 0.0f, 0.0f, 0.0f, 0, 1))
+ if(!pGameObj->Create(db_lowGUID, goI->id, map, chr->GetPhaseMaskForSpawn(), x, y, z, o, 0.0f, 0.0f, 0.0f, 0.0f, 0, GO_STATE_READY))
{
delete pGameObj;
return false;