- fixed: APowerRegeneration::DoEffect did not call the super method.

This commit is contained in:
Christoph Oelckers 2015-04-16 08:29:21 +02:00
parent 203f88ce6e
commit 3cb4eb44a8

View file

@ -1757,6 +1757,7 @@ IMPLEMENT_CLASS(APowerRegeneration)
void APowerRegeneration::DoEffect() void APowerRegeneration::DoEffect()
{ {
Super::DoEffect();
if (Owner != NULL && Owner->health > 0 && (level.time & 31) == 0) if (Owner != NULL && Owner->health > 0 && (level.time & 31) == 0)
{ {
if (P_GiveBody(Owner, Strength/FRACUNIT)) if (P_GiveBody(Owner, Strength/FRACUNIT))