mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user