From 873001197a25eaaeefcaea91ebddd424301be809 Mon Sep 17 00:00:00 2001 From: cheapie Date: Sun, 1 Sep 2024 14:26:38 -0500 Subject: Fix possible crash when floor tables are updated --- controllerfw.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/controllerfw.lua b/controllerfw.lua index 885a5a9..0b2e590 100644 --- a/controllerfw.lua +++ b/controllerfw.lua @@ -100,6 +100,7 @@ local function gettarget(floor) local target = 0 if floor == 1 then return 0 end for i=1,floor-1,1 do + if not mem.params.floorheights[i] then return 0 end target = target+mem.params.floorheights[i] end return target -- cgit v1.2.3