From 9403084d41c473bfaabdee10a598603b9cffbf3b Mon Sep 17 00:00:00 2001 From: DakkJaniels <6080734+DakkJaniels@users.noreply.github.com> Date: Wed, 27 Jul 2022 16:25:18 -0400 Subject: [PATCH] Fix ModifyPlrMag Used BaseStr instead of BaseMag --- Source/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;