[7215] .gobject setphase now really work.

This commit is contained in:
VladimirMangos 2009-02-01 09:38:29 +03:00
parent 4602ff9c21
commit ed59d22dec
2 changed files with 3 additions and 5 deletions

View file

@ -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);