From ff4c37eb2b05ce14db0bc1b2f75bebaccf28cfe4 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Wed, 25 Apr 2012 14:05:51 -0500 Subject: [PATCH] fix bad placement of MapScriptHeader_0x70000 in asm --- extras/crystal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/crystal.py b/extras/crystal.py index 24db88d5b..d0de490cb 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -4609,7 +4609,7 @@ class Asm: if isinstance(object, AsmSection): continue #replace an incbin with three incbins, replace middle incbin with whatever - elif isinstance(object, Incbin) and (object.address <= start_address <= object.last_address): + elif isinstance(object, Incbin) and (object.address <= start_address < object.last_address): #split up the incbin into three segments incbins = object.split(start_address, end_address - start_address) #figure out which incbin to replace with the new object