shithub: pokecrystal

Download patch

ref: a001c51bd4d742b18de5cd04ded71fbc11a1042e
parent: aed366e59d33b17bcdab8a4213bad8bbc78635ce
author: Bryan Bishop <[email protected]>
date: Sat May 19 17:13:57 EDT 2012

fix TrainerGroupTable.get_dependencies()

--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -3443,6 +3443,8 @@
 trainer_group_table = None
 class TrainerGroupTable:
     """ A list of pointers.
+
+    This should probably be called TrainerGroupPointerTable.
     """
 
     def __init__(self):
@@ -3463,9 +3465,9 @@
         global_dependencies.update(self.headers)
         if recompute == True and self.dependencies != None and self.dependencies != []: 
             return self.dependencies
-        dependencies = [self.headers]
+        dependencies = copy(self.headers)
         for header in self.headers:
-            dependencies += header.get_dependencies(recompute=recompute, global_dependencies=global_dependencies)
+            dependencies.extend(header.get_dependencies(recompute=recompute, global_dependencies=global_dependencies))
         return dependencies
 
     def parse(self):