summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2013-06-22 20:36:21 -0700
committerPixel <pixel@nobis-crew.org>2013-06-22 20:36:21 -0700
commitec9fd39b37b1ec047e13fcd2a6dbf0763e82afad (patch)
tree473ce315c06f88b21804b210ebac84cc68cac28a
parent57ab7443ac310a20afd231be50bed57d75bc0bff (diff)
Few weird tweaks; don't know exactly how this can happen.
-rw-r--r--VP-roomwork.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/VP-roomwork.lua b/VP-roomwork.lua
index 475b9a8..2986d9d 100644
--- a/VP-roomwork.lua
+++ b/VP-roomwork.lua
@@ -55,6 +55,8 @@ function patch_logic(logic, windows, activate_debug)
txtptr = andB(opcode, 0xff) + 1 - ptr_start
if txtptr < 0 then return end
local window = windows[txtptr + ptr_start]
+ if not window then return end
+ if window.wtype == "fixed" then return end
local arg1 = orB(window.x, shl(window.y, 16))
local arg2 = orB(window.width, shl(window.height, 16))
patch_opcode(PC + 1, arg1)