Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Yehonal committed Jun 10, 2021
1 parent ba69b1d commit ff2d236
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/mod-challenge-mode/src/scripts/ChallengeModeMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ff2d236

Please sign in to comment.