From 4850ee37763dbb0075afc80ca3a21faf6b036f29 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Wed, 13 Dec 2023 09:58:42 -0500 Subject: [PATCH] - fix nullptr check for target in HolySpirit.Slam (fixes #2296) --- wadsrc/static/zscript/actors/hexen/clericholy.zs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/actors/hexen/clericholy.zs b/wadsrc/static/zscript/actors/hexen/clericholy.zs index 8f2af52a4..e3aee9bac 100644 --- a/wadsrc/static/zscript/actors/hexen/clericholy.zs +++ b/wadsrc/static/zscript/actors/hexen/clericholy.zs @@ -346,7 +346,7 @@ class HolySpirit : Actor { if (thing.bShootable && thing != target) { - if (multiplayer && !deathmatch && thing.player && target.player) + if (multiplayer && !deathmatch && thing.player && target && target.player) { // don't attack other co-op players return true; }