shithub: pokecrystal

Download patch

ref: d4508d9beda76be00c79296e88129a5dcfd908d2
parent: ef56a46e8118d7532721516635b9fb2c8085d2ff
author: Bryan Bishop <[email protected]>
date: Sat Apr 28 07:08:05 EDT 2012

temporary fix to prevent TextScript from appending @s

--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -725,7 +725,9 @@
         address = self.address
         start_address = address
         if label == None: label = self.label.name
-        commands = self.commands
+        #using deepcopy because otherwise additional @s get appended each time
+        #like to the end of the text for TextScript(0x5cf3a)
+        commands = deepcopy(self.commands)
         #apparently this isn't important anymore?
         needs_to_begin_with_0 = True
         #start with zero please