diff --git a/Source/player.cpp b/Source/player.cpp index 5fd089c6b..7dd4baff8 100644 --- a/Source/player.cpp +++ b/Source/player.cpp @@ -3582,7 +3582,7 @@ void ModifyPlrStr(Player &player, int l) void ModifyPlrMag(Player &player, int l) { - l = clamp(l, 0 - player._pBaseStr, player.GetMaximumAttributeValue(CharacterAttribute::Magic) - player._pBaseMag); + l = clamp(l, 0 - player._pBaseMag, player.GetMaximumAttributeValue(CharacterAttribute::Magic) - player._pBaseMag); player._pMagic += l; player._pBaseMag += l;