From 2238c7e8d167fc74bef889e6cf03e03a072506ee Mon Sep 17 00:00:00 2001 From: jottyfan Date: Tue, 26 May 2020 23:51:04 +0200 Subject: [PATCH] fixes https://gitlab.com/jottyfan/bee-reward/-/issues/2 --- main.nut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.nut b/main.nut index 72dd1ee..a52cfae 100644 --- a/main.nut +++ b/main.nut @@ -257,7 +257,7 @@ function BeeRewardClass::FindChallenge(cargo_index, distance, comp_id) } } if (prod_score > best_score) { // The accepting industry is better than what we have. - prod_score = best_score; + best_score = prod_score; best_accept = accept; } }