mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 00:46:46 +00:00
[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:
+1
-1
@@ -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 were at max level then stop gaining experience if we make it to the cap
|
||||||
if (GetLevel() == max_level - 1){
|
if (GetLevel() == max_level - 1){
|
||||||
uint32 expneeded = GetEXPForLevel(maxlevel);
|
uint32 expneeded = GetEXPForLevel(max_level);
|
||||||
if (set_exp > expneeded) {
|
if (set_exp > expneeded) {
|
||||||
set_exp = expneeded;
|
set_exp = expneeded;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user