mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[7215] .gobject setphase now really work.
This commit is contained in:
parent
4602ff9c21
commit
ed59d22dec
2 changed files with 3 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue