From 230d7192c39b1a2097f1d6a78a3cb6e51ddb4a0f Mon Sep 17 00:00:00 2001 From: Marisa the Magician Date: Tue, 19 Dec 2023 16:39:35 +0100 Subject: [PATCH] Missed a null check. --- language.version | 4 ++-- zscript/handler/swwm_statichandler.zsc | 2 +- zscript/utility/swwm_utility_blast.zsc | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/language.version b/language.version index 1e15f6e3e..6564f8ed5 100644 --- a/language.version +++ b/language.version @@ -1,3 +1,3 @@ [default] -SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r1058 \cu(Tue 19 Dec 13:33:47 CET 2023)\c-"; -SWWM_SHORTVER="\cw1.3pre r1058 \cu(2023-12-19 13:33:47)\c-"; +SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r1059 \cu(Tue 19 Dec 16:39:35 CET 2023)\c-"; +SWWM_SHORTVER="\cw1.3pre r1059 \cu(2023-12-19 16:39:35)\c-"; diff --git a/zscript/handler/swwm_statichandler.zsc b/zscript/handler/swwm_statichandler.zsc index f1fe9a992..890f7d1c6 100644 --- a/zscript/handler/swwm_statichandler.zsc +++ b/zscript/handler/swwm_statichandler.zsc @@ -99,7 +99,7 @@ Class SWWMStaticHandler : StaticEventHandler SWWMHandler.ClearAllShaders(); EventHandler.SendInterfaceEvent(consoleplayer,"swwmflushhud"); EventHandler.SendInterfaceEvent(consoleplayer,"swwmaprcheck"); - // quick fix for old savegames + // quick fix for old savegames (to be removed in 1.3 release) let hnd = SWWMHandler(EventHandler.Find("SWWMHandler")); if ( hnd && (hnd.sbounds.Size() <= 0) ) hnd.PrecalculateSectorBounds(); diff --git a/zscript/utility/swwm_utility_blast.zsc b/zscript/utility/swwm_utility_blast.zsc index 37bf24feb..4c1b19d82 100644 --- a/zscript/utility/swwm_utility_blast.zsc +++ b/zscript/utility/swwm_utility_blast.zsc @@ -78,6 +78,7 @@ extend Class SWWMUtility while ( bt.Next() ) { let a = bt.Thing; + if ( !a ) continue; // this can happen, yes // early checks for self and ignored actor (usually the instigator) if ( (a == ignoreme) || (a == Source) ) continue;