Core/: Fix warnings

--HG--
branch : trunk
This commit is contained in:
Spp
2010-09-21 10:11:25 +02:00
parent 63aa6e44fb
commit 7a3fd2e9bf
6 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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)