Skip to content

Commit

Permalink
[Bug Fix] Correct missed maxlevel reference in exp.cpp (EQEmu#4463)
Browse files Browse the repository at this point in the history
This was causing characters to de-level when gaining experience and was missed as part of EQEmu#4455
  • Loading branch information
N0ctrnl authored and Akkadius committed Aug 27, 2024
1 parent 126465c commit 9e77f86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zone/exp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ void Client::SetEXP(ExpSource exp_source, uint64 set_exp, uint64 set_aaxp, bool

//If were at max level then stop gaining experience if we make it to the cap
if (GetLevel() == max_level - 1){
uint32 expneeded = GetEXPForLevel(maxlevel);
uint32 expneeded = GetEXPForLevel(max_level);
if (set_exp > expneeded) {
set_exp = expneeded;
}
Expand Down

0 comments on commit 9e77f86

Please sign in to comment.