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
+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)