fix crash

This commit is contained in:
Yehonal
2021-06-10 19:21:55 +02:00
parent ba69b1df60
commit ff2d2361bd

View File

@@ -17,6 +17,9 @@ void ChallengeModeMgr::LoadConfig(bool /* reload */)
}
bool ChallengeModeMgr::isEligibleForReward(Player const *player) {
if (!player->IsInWorld())
return true;
// disable rewards only for dungeons
if (!player->GetMap()->IsDungeon() && !player->GetMap()->IsRaid())
return true;