mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[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:
parent
b942616ded
commit
64316d2af1
2 changed files with 5 additions and 2 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue