diff --git a/src/choices.rs b/src/choices.rs index 560cf271ea969ccd29e582265aee8ba78a168179..3091026685708649d21e9f804b8468f270159396 100644 --- a/src/choices.rs +++ b/src/choices.rs @@ -40,7 +40,7 @@ impl ChoiceBuilder { let scorer_ent = self.when.attach(cmd, actor); cmd.entity(parent).push_children(&[scorer_ent]); Choice { - scorer: ScorerEnt(self.when.attach(cmd, actor)), + scorer: ScorerEnt(scorer_ent), action: ActionBuilderWrapper::new(self.then.clone()), } }