ref: ff4c37eb2b05ce14db0bc1b2f75bebaccf28cfe4
parent: 9a819183922b5498cce76ceb0228c9c7c39d4596
author: Bryan Bishop <[email protected]>
date: Wed Apr 25 10:05:51 EDT 2012
fix bad placement of MapScriptHeader_0x70000 in asm
--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -4609,7 +4609,7 @@
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