From 075cce98c4956687beb9849cc024490a59a27cf5 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 3 Feb 2017 10:41:38 +0100 Subject: [PATCH] - fixed: PlayerPawn.GetEffectTicsForItem read the duration from the wrong actor. --- wadsrc/static/zscript/shared/player.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/shared/player.txt b/wadsrc/static/zscript/shared/player.txt index d4992e97f..0a7798ace 100644 --- a/wadsrc/static/zscript/shared/player.txt +++ b/wadsrc/static/zscript/shared/player.txt @@ -126,7 +126,7 @@ class PlayerPawn : Actor native let powerup = Powerup(FindInventory(powerupType)); if(powerup != null) { - let maxtics = GetDefaultByType(powerupType).EffectTics; + let maxtics = GetDefaultByType(pg).EffectTics; if (maxtics == 0) maxtics = powerup.default.EffectTics; return powerup.EffectTics, maxtics; }