[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; uint32 mapid = 0;
bool got_map = false; bool got_map = false;
if (args != "all") if (strncmp(args,"all",strlen(args)) != 0)
{ {
if(!isNumeric(args[0]))
return false;
got_map = true; got_map = true;
mapid = atoi(args); mapid = atoi(args);
} }

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "8710" #define REVISION_NR "8711"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__