From c89fd51268cddc8bd89a194864a07e062eda3095 Mon Sep 17 00:00:00 2001 From: pasky1382 Date: Thu, 13 Feb 2014 23:02:09 +0000 Subject: [PATCH] Fix oversight. --- output/Lua/NES/Castlevania.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/output/Lua/NES/Castlevania.lua b/output/Lua/NES/Castlevania.lua index 8b70378127..81dfd195bc 100644 --- a/output/Lua/NES/Castlevania.lua +++ b/output/Lua/NES/Castlevania.lua @@ -40,8 +40,8 @@ end local function buildbox(i) local box = {0,0} -- xrad/yrad - local dracform = mainmemory.read_u8(0x434 + i) - + local offset = mainmemory.read_u8(0x434 + i) + local dracform if offset == 0x1D then dracform = mainmemory.read_u8(0x7A) if dracform == 1 then