From 89dfac62a9e6b60ad96875ecf74dde999316f79a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 22 Jul 2023 10:21:35 +0200 Subject: [PATCH] - Duke fix bad type in shrinker. We cannot use 'let' here because IsWW2GI is a compiler intrinsic which results in a nullpointer type if true. --- wadsrc/static/zscript/games/duke/actors/dukeweapons/shrinker.zs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/games/duke/actors/dukeweapons/shrinker.zs b/wadsrc/static/zscript/games/duke/actors/dukeweapons/shrinker.zs index ffe97ff03..4eb9da48e 100644 --- a/wadsrc/static/zscript/games/duke/actors/dukeweapons/shrinker.zs +++ b/wadsrc/static/zscript/games/duke/actors/dukeweapons/shrinker.zs @@ -7,7 +7,7 @@ class DukeShrinker : DukeActor if (shooter.extra >= 0) shooter.shade = -96; if (p != null) { - let aimed = IsNamWW2GI()? null : shooter.aim(self); + DukeActor aimed = IsNamWW2GI()? null : shooter.aim(self); if (aimed) { double dal = ((aimed.scale.X * aimed.spriteHeight()) * 0.5); // note the incorrect scale this uses!