diff --git a/wadsrc/static/zscript/actors/inventory/health.zs b/wadsrc/static/zscript/actors/inventory/health.zs index e6bc8e4c5b..9ba0837b38 100644 --- a/wadsrc/static/zscript/actors/inventory/health.zs +++ b/wadsrc/static/zscript/actors/inventory/health.zs @@ -102,9 +102,9 @@ class MaxHealth : Health let player = PlayerPawn(other); if (player) { - if (player.BonusHealth < savedAmount) + if (player.BonusHealth < MaxAmount) { - player.BonusHealth = min(player.BonusHealth + Amount, savedAmount); + player.BonusHealth = min(player.BonusHealth + Amount, MaxAmount); success = true; } }