From 45980ff13650b75175c31bb63d31140fd4f6c574 Mon Sep 17 00:00:00 2001 From: alexander Date: Mon, 26 Apr 2021 03:03:06 -0500 Subject: [PATCH] Fixed error where wrong component for `SumOfScorers` was attached --- src/scorers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scorers.rs b/src/scorers.rs index 39d2980..5708627 100644 --- a/src/scorers.rs +++ b/src/scorers.rs @@ -261,7 +261,7 @@ impl ScorerBuilder for SumOfScorersBuilder { cmd.entity(scorer) .insert(Transform::default()) .insert(GlobalTransform::default()) - .insert(AllOrNothing { + .insert(SumOfScorers { threshold: self.threshold, scorers: scorers.into_iter().map(ScorerEnt).collect(), });