summaryrefslogtreecommitdiff
path: root/VP-roomwork.lua
diff options
context:
space:
mode:
Diffstat (limited to 'VP-roomwork.lua')
-rw-r--r--VP-roomwork.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/VP-roomwork.lua b/VP-roomwork.lua
index d17fb33..a3f1827 100644
--- a/VP-roomwork.lua
+++ b/VP-roomwork.lua
@@ -98,7 +98,7 @@ function patch_logic(logic, windows, activate_debug)
local opcode = rd_opcode(PC)
if opcode == 0x1400033C or opcode == 0x140003E2 or opcode == 0x140003F5 or opcode == 0x14000408 then process_subtxt(PC) end
end
- check_logic(logic)
+ check_room_logic(logic)
if activate_debug then patch_opcode(0x1158, 0x9e000000) end
logic_disasm(logic, nil, {
-- txtbox1
@@ -207,7 +207,7 @@ function insert_script(old, new, nptrs, windows)
local ret = Buffer(true)
- ret:writeU32(size_1)
+ ret:writeU32(size_logic)
ret:writeU32(u1)
ret:writeU32(u2)
if nptrs ~= n_ptrs then error("Script inconsistancy! Got " .. nptrs .. " instead of " .. n_ptrs) end