Core/Misc: Fix static analysis issues
This commit is contained in:
1 parent
13e1a591e5
commit
d01f1d31bd
2 files changed
+2
-2
No files matched your search
@@ -1005,7 +1005,7 @@ GameTele const* ChatHandler::extractGameTeleFromLink(char* text)
|
||||
return nullptr;
|
||||
|
||||
// id case (explicit or from shift link)
|
||||
if (cId[0] >= '0' || cId[0] >= '9')
|
||||
if (cId[0] >= '0' && cId[0] <= '9')
|
||||
if (uint32 id = atoi(cId))
|
||||
return sObjectMgr->GetGameTele(id);
|
||||
|
||||
|
||||
Reference in new issue
Block a user