summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crystal.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/crystal.py b/crystal.py
index 3786e13..0495395 100644
--- a/crystal.py
+++ b/crystal.py
@@ -725,7 +725,9 @@ class TextScript:
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