diff options
Diffstat (limited to 'VP-roomwork.lua')
-rw-r--r-- | VP-roomwork.lua | 2 |
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) |