# HG changeset patch # User KarstenBock@gmx.net # Date 1316781786 -7200 # Node ID 43e7a8d94446d892313228bc58e039bd7cdb9d33 # Parent e864b704dd594a0b9162eea57d158cecb9fcf2c5 Fixed bug in checkAttributes that caused that values where not correctly set from the Template. diff -r e864b704dd59 -r 43e7a8d94446 gamemodel.py --- a/gamemodel.py Fri Sep 23 14:24:22 2011 +0200 +++ b/gamemodel.py Fri Sep 23 14:43:06 2011 +0200 @@ -108,8 +108,10 @@ if self.object_db.has_key(template): db_attributes = deepcopy(self.object_db[template]) for key in db_attributes.keys(): - if attributes.has_key(key): - attributes[key] = attributes[key] or db_attributes[key] + if attributes.has_key(key): + tmp_attributes = db_attributes[key] + tmp_attributes.update(attributes[key]) + attributes[key] = tmp_attributes else: attributes[key] = db_attributes[key] return attributes