From ba69b1df60d908a1ddbbe6c989a83af435a4fc46 Mon Sep 17 00:00:00 2001 From: Yehonal Date: Thu, 10 Jun 2021 19:07:57 +0200 Subject: [PATCH] fixed compilation --- .../mod-challenge-mode/src/scripts/ChallengeModeScript.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mod-challenge-mode/src/scripts/ChallengeModeScript.cpp b/modules/mod-challenge-mode/src/scripts/ChallengeModeScript.cpp index baf5572..c2cfc78 100644 --- a/modules/mod-challenge-mode/src/scripts/ChallengeModeScript.cpp +++ b/modules/mod-challenge-mode/src/scripts/ChallengeModeScript.cpp @@ -58,10 +58,10 @@ class ChallengeModePlayer : public PlayerScript return sChallengeMode->isEligibleForReward(player); } - void OnGivePlayerXP(Player* player, uint32& amount, Unit* /* victim */) override + void OnGiveXP(Player* player, uint32& amount, Unit* /* victim */) override { if (!sChallengeMode->isEligibleForReward(player)) { - amount = 0 + amount = 0; } } };