Fixing last day attendance reward.
This commit is contained in:
@ -14197,7 +14197,7 @@ public final class PlayerInstance extends Playable
|
||||
{
|
||||
canBeRewarded = true;
|
||||
// Reset index if max is reached.
|
||||
if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1))
|
||||
if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount())
|
||||
{
|
||||
rewardIndex = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user