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 383f01b..4c2cb41 100644
--- a/crystal.py
+++ b/crystal.py
@@ -4619,7 +4619,7 @@ class Asm:
incbins[index] = new_object
#insert these incbins into self.parts
gindex = self.parts.index(object)
- self.parts = self.parts[:gindex] + incbins + self.parts[gindex:]
+ self.parts = self.parts[:gindex] + incbins + self.parts[gindex+1:]
found = True
break
#insert before the current object