summaryrefslogtreecommitdiff
path: root/crystal.py
diff options
context:
space:
mode:
Diffstat (limited to 'crystal.py')
-rw-r--r--crystal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/crystal.py b/crystal.py
index 24db88d..d0de490 100644
--- a/crystal.py
+++ b/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