Core/Misc: removed some useless map checks
(cherry picked from commit cf1e80e3d09067ca4d0078a8113a09227a9f91ae)
This commit is contained in:
1 parent
f7e6f7a105
commit
df88c7f278
30 files changed
+162
-308
No files matched your search
@@ -6920,7 +6920,7 @@ void Player::RewardReputation(Unit* victim, float rate)
|
||||
{
|
||||
// support for: Championing - http://www.wowwiki.com/Championing
|
||||
Map const* map = GetMap();
|
||||
if (map && map->IsNonRaidDungeon())
|
||||
if (map->IsNonRaidDungeon())
|
||||
if (LFGDungeonEntry const* dungeon = GetLFGDungeon(map->GetId(), map->GetDifficulty()))
|
||||
if (dungeon->reclevel == 80)
|
||||
ChampioningFaction = GetChampioningFaction();
|
||||
@@ -20264,7 +20264,7 @@ void Player::ResetInstances(uint8 method, bool isRaid)
|
||||
// if the map is loaded, reset it
|
||||
Map* map = sMapMgr->FindMap(p->GetMapId(), p->GetInstanceId());
|
||||
if (map && map->IsDungeon())
|
||||
if (!((InstanceMap*)map)->Reset(method))
|
||||
if (!map->ToInstanceMap()->Reset(method))
|
||||
{
|
||||
++itr;
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user