aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level2.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-01 16:47:49 -0600
committermegamage <none@none>2009-02-01 16:47:49 -0600
commit5d490a1020537c9a4bd990956f6a10c544f40d3f (patch)
tree0f44a0a01742f56edde8807dcd999243f29ecfc5 /src/game/Level2.cpp
parent05c07aa74a38e73006ba7106574290179942692c (diff)
[7215] .gobject setphase now really work. By VladimirMangos.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Level2.cpp')
-rw-r--r--src/game/Level2.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp
index b43c4a971f5..8e891626b1c 100644
--- a/src/game/Level2.cpp
+++ b/src/game/Level2.cpp
@@ -4486,10 +4486,8 @@ bool ChatHandler::HandleGOPhaseCommand(const char* args)
return false;
}
- if (!*args)
- return false;
-
- uint32 phasemask = (uint32) atoi((char*)args);
+ char* phaseStr = strtok (NULL, " ");
+ uint32 phasemask = phaseStr? atoi(phaseStr) : 0;
if ( phasemask == 0 )
{
SendSysMessage(LANG_BAD_VALUE);