From adc1ac1359657293fec043f22d5c4fbbd7d08e6f Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Sun, 1 Feb 2009 09:38:29 +0300 Subject: [PATCH] [7215] .gobject setphase now really work. --- src/game/Level2.cpp | 6 ++---- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp index 14bcb197a..1722b9a5d 100644 --- a/src/game/Level2.cpp +++ b/src/game/Level2.cpp @@ -4292,10 +4292,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); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 4b3b3fa5d..3f93144e6 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7214" + #define REVISION_NR "7215" #endif // __REVISION_NR_H__ -- 2.11.4.GIT