More warning fixes

This commit is contained in:
Shauren
2011-03-08 19:11:02 +01:00
parent cbbfb52ca7
commit 9710c41a40
19 changed files with 119 additions and 96 deletions
+4 -1
View File
@@ -4122,8 +4122,11 @@ bool ChatHandler::HandleInstanceUnbindCommand(const char *args)
uint16 MapId = 0;
if (strcmp(pMap, "all"))
if (!(MapId = uint16(atoi(pMap))))
{
MapId = uint16(atoi(pMap));
if (!MapId)
return false;
}
for(uint8 i = 0; i < MAX_DIFFICULTY; ++i)
{