[Bug Fix] Correct missed maxlevel reference in exp.cpp (#4463)

This was causing characters to de-level when gaining experience and was missed as part of https://github.com/EQEmu/Server/pull/4455
This commit is contained in:
Kurt Gilpin 2024-08-26 21:34:22 -05:00 committed by GitHub
parent 1f9c4b3a22
commit 8d8ef6d480
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}