Core/Misc: Fix a couple of warnings, some of them performance related

Errors were found using Cppcheck, open-source static analysis tool
This commit is contained in:
Nay
2013-01-04 23:13:21 +00:00
parent e0a5aabaf7
commit a509aea659
18 changed files with 25 additions and 31 deletions

View File

@@ -179,6 +179,7 @@ bool MapManager::CanPlayerEnter(uint32 mapid, Player* player, bool loginCheck)
else // attempt to downscale
mapDiff = GetDownscaledMapDifficultyData(entry->MapID, targetDifficulty);
}
// FIXME: mapDiff is never used
//Bypass checks for GMs
if (player->isGameMaster())