Skip to content
Snippets Groups Projects
Unverified Commit 10a6d022 authored by Kat Marchán's avatar Kat Marchán
Browse files

fix(scorer): stop attaching duplicate scorers

parent 050d1cca
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ impl ChoiceBuilder { ...@@ -40,7 +40,7 @@ impl ChoiceBuilder {
let scorer_ent = self.when.attach(cmd, actor); let scorer_ent = self.when.attach(cmd, actor);
cmd.entity(parent).push_children(&[scorer_ent]); cmd.entity(parent).push_children(&[scorer_ent]);
Choice { Choice {
scorer: ScorerEnt(self.when.attach(cmd, actor)), scorer: ScorerEnt(scorer_ent),
action: ActionBuilderWrapper::new(self.then.clone()), action: ActionBuilderWrapper::new(self.then.clone()),
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment