From: Joe Wreschnig Date: Tue, 16 Mar 2010 07:30:30 +0000 (-0700) Subject: ActionDef: Append based on parsing the subelement, not the element. X-Git-Url: https://git.yukkurigames.com/?a=commitdiff_plain;h=181030a9517b3742250dadbf6df7ed633b50831e;p=python-bulletml.git ActionDef: Append based on parsing the subelement, not the element. --- diff --git a/bulletml/parser.py b/bulletml/parser.py index 529876b..187fa86 100644 --- a/bulletml/parser.py +++ b/bulletml/parser.py @@ -205,9 +205,9 @@ class BulletDef(object): elif tag == "speed": self.speed = Speed(doc, subelem) elif tag == "action": - self.actions.append(ActionDef(doc, element)) + self.actions.append(ActionDef(doc, subelem)) elif tag == "actionRef": - self.actions.append(ActionRef(doc, element)) + self.actions.append(ActionRef(doc, subelem)) def __call__(self, params, rank): actions = []