From a001c51bd4d742b18de5cd04ded71fbc11a1042e Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sat, 19 May 2012 21:13:57 -0500 Subject: [PATCH] fix TrainerGroupTable.get_dependencies() --- extras/crystal.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extras/crystal.py b/extras/crystal.py index d64222342..2b61f470d 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -3443,6 +3443,8 @@ trainer_group_pointer_table_address_gs = 0x3993E trainer_group_table = None class TrainerGroupTable: """ A list of pointers. + + This should probably be called TrainerGroupPointerTable. """ def __init__(self): @@ -3463,9 +3465,9 @@ class TrainerGroupTable: 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):