Core: Minor code cleanup before next commits

--HG--
branch : trunk
This commit is contained in:
Spp
2010-09-10 13:37:33 +02:00
parent 842a79d38c
commit fd14d7195f
5 changed files with 22 additions and 36 deletions
+3 -3
View File
@@ -193,7 +193,7 @@ bool ChatHandler::HandleReloadAllGossipsCommand(const char* args)
HandleReloadNpcGossipCommand("a");
HandleReloadPointsOfInterestCommand("a");
return true;
}
}
bool ChatHandler::HandleReloadAllItemCommand(const char*)
{
@@ -6710,11 +6710,11 @@ bool ChatHandler::HandleInstanceUnbindCommand(const char *args)
diff = atoi(pDiff);
uint16 counter = 0;
int16 MapId = 0;
if (strcmp(pMap, "all"))
if (!(MapId = atoi(pMap)))
return false;
for(uint8 i = 0; i < MAX_DIFFICULTY; ++i)
{
Player::BoundInstancesMap &binds = player->GetBoundInstances(Difficulty(i));