remove duplicate incbins in asm output

original-commit-id: 2de204cdb5a24aeaae35cdb94aa61649874ddfce
This commit is contained in:
Bryan Bishop
2012-04-22 15:13:32 -05:00
parent 9cffdb17f7
commit 3270d8a5f9

View File

@@ -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