X-Git-Url: https://git.yukkurigames.com/?p=python-bulletml.git;a=blobdiff_plain;f=bulletml%2Fparser.py;h=c8bc990b105bfab652326be334a7db4b0be6a820;hp=2075ac961ae06715a4ffe899541667053fa8e563;hb=bf5ff1d116840e1330c80894132919ec515596e4;hpb=2af7a59592e4774c3fc9be7202285c44ba9a5c6f diff --git a/bulletml/parser.py b/bulletml/parser.py index 2075ac9..c8bc990 100644 --- a/bulletml/parser.py +++ b/bulletml/parser.py @@ -368,8 +368,7 @@ class Repeat(object): def __call__(self, owner, action, params, rank, created): repeat = self.times(params, rank) actions, params = self.action(params, rank) - child = action.__class__( - owner, action, actions, params, rank, repeat) + child = action.Child(actions, params, rank, repeat) owner.replace(action, child) child.step(owner, created) return True @@ -424,7 +423,7 @@ class If(object): if branch: actions, params = branch(params, rank) - child = action.__class__(owner, action, actions, params, rank) + child = action.Child(actions, params, rank) owner.replace(action, child) child.step(owner, created) return True