From ec9fd39b37b1ec047e13fcd2a6dbf0763e82afad Mon Sep 17 00:00:00 2001 From: Pixel Date: Sat, 22 Jun 2013 20:36:21 -0700 Subject: Few weird tweaks; don't know exactly how this can happen. --- VP-roomwork.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'VP-roomwork.lua') 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) -- cgit v1.2.3