[8711] Fixed work .instance unbind all

C-strings can't be compared by !=

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
ChipLeo 2009-10-22 20:02:47 +04:00 committed by VladimirMangos
parent b942616ded
commit 64316d2af1
2 changed files with 5 additions and 2 deletions

View file

@ -5960,8 +5960,11 @@ bool ChatHandler::HandleInstanceUnbindCommand(const char* args)
uint32 mapid = 0;
bool got_map = false;
if (args != "all")
if (strncmp(args,"all",strlen(args)) != 0)
{
if(!isNumeric(args[0]))
return false;
got_map = true;
mapid = atoi(args);
}