diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Level2.cpp | 6 | ||||
-rw-r--r-- | 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 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); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 4b3b3fa5d97..3f93144e634 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__ |