Core/: Fix warnings
--HG-- branch : trunk
This commit is contained in:
@@ -1689,7 +1689,7 @@ valid examples:
|
||||
bool foundName = false;
|
||||
for (uint8 dbIndex = LOCALE_koKR; dbIndex < MAX_LOCALE; ++dbIndex)
|
||||
{
|
||||
if (dbIndex == -1 || il == NULL || uint8(dbIndex) >= il->Name.size())
|
||||
if (il == NULL || dbIndex >= il->Name.size())
|
||||
// using strange database/client combinations can lead to this case
|
||||
expectedName = linkedItem->Name1;
|
||||
else
|
||||
|
||||
@@ -6904,10 +6904,10 @@ bool ChatHandler::HandleInstanceUnbindCommand(const char *args)
|
||||
if (pDiff)
|
||||
diff = atoi(pDiff);
|
||||
uint16 counter = 0;
|
||||
int16 MapId = 0;
|
||||
uint16 MapId = 0;
|
||||
|
||||
if (strcmp(pMap, "all"))
|
||||
if (!(MapId = atoi(pMap)))
|
||||
if (!(MapId = uint16(atoi(pMap))))
|
||||
return false;
|
||||
|
||||
for(uint8 i = 0; i < MAX_DIFFICULTY; ++i)
|
||||
|
||||
Reference in New Issue
Block a user