From 3b31dda6b8368bcd8408498e12cd7d865fb91a8b Mon Sep 17 00:00:00 2001 From: Blue Shadow Date: Fri, 24 Sep 2021 14:20:33 +0300 Subject: [PATCH] - resolved a VM abort upon morphing while the tome of power is active --- wadsrc/static/zscript/actors/player/player.zs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/actors/player/player.zs b/wadsrc/static/zscript/actors/player/player.zs index e63a5d7733..a3f94408f3 100644 --- a/wadsrc/static/zscript/actors/player/player.zs +++ b/wadsrc/static/zscript/actors/player/player.zs @@ -140,7 +140,7 @@ class PlayerPawn : Actor if (health > 0) Height = FullHeight; } - if (bWeaponLevel2Ended) + if (player && bWeaponLevel2Ended) { bWeaponLevel2Ended = false; if (player.ReadyWeapon != NULL && player.ReadyWeapon.bPowered_Up)