Core/Misc: Fix static analysis issues

(cherry picked from commit 65aeeafad3)
This commit is contained in:
jackpoz
2017-04-25 11:52:50 +02:00
committed by funjoker
parent dea7159745
commit 6611211d31

View File

@@ -892,7 +892,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);