From 3c2b083aa11fab689aad67085705edf45558044f Mon Sep 17 00:00:00 2001 From: Marisa the Magician Date: Thu, 18 Jul 2024 15:38:19 +0200 Subject: [PATCH] =?UTF-8?q?Possibly=20fix=20an=20esoteric=20bug=20with=20t?= =?UTF-8?q?he=20L=C3=A4mp=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- language.version | 4 ++-- zscript/items/swwm_lamp.zsc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/language.version b/language.version index da99eec1f..884c3d52e 100644 --- a/language.version +++ b/language.version @@ -1,3 +1,3 @@ [default] -SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r1138 \cu(Thu Jul 18 14:22:35 CEST 2024)\c-"; -SWWM_SHORTVER="\cw1.3pre r1138 \cu(2024-07-18 14:22:35)\c-"; +SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r1139 \cu(Thu Jul 18 15:38:19 CEST 2024)\c-"; +SWWM_SHORTVER="\cw1.3pre r1139 \cu(2024-07-18 15:38:19)\c-"; diff --git a/zscript/items/swwm_lamp.zsc b/zscript/items/swwm_lamp.zsc index 4786dd4cd..cba2cc0ba 100644 --- a/zscript/items/swwm_lamp.zsc +++ b/zscript/items/swwm_lamp.zsc @@ -56,7 +56,7 @@ Class LampMoth : Actor } bool isEntranced() { - if ( !lamp ) + if ( !lamp && CurSector ) // CurSector can be null somehow? { // look for nearby lamps double mindist = 62500.;