- removed the leftovers of the removed savedamount variable.

This commit is contained in:
Christoph Oelckers 2019-04-26 12:00:58 +02:00
parent 9dca095d08
commit 03828bb759

View file

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