- fixed: PlayerPawn.GetEffectTicsForItem read the duration from the wrong actor.

This commit is contained in:
Christoph Oelckers 2017-02-03 10:41:38 +01:00
parent a5f417b1e5
commit 075cce98c4

View file

@ -126,7 +126,7 @@ class PlayerPawn : Actor native
let powerup = Powerup(FindInventory(powerupType)); let powerup = Powerup(FindInventory(powerupType));
if(powerup != null) if(powerup != null)
{ {
let maxtics = GetDefaultByType(powerupType).EffectTics; let maxtics = GetDefaultByType(pg).EffectTics;
if (maxtics == 0) maxtics = powerup.default.EffectTics; if (maxtics == 0) maxtics = powerup.default.EffectTics;
return powerup.EffectTics, maxtics; return powerup.EffectTics, maxtics;
} }