From 8b7a86192074fa185c27a89819303cc822f753ac Mon Sep 17 00:00:00 2001 From: Sunrise <33401986+ottml@users.noreply.github.com> Date: Sun, 7 Jul 2024 19:28:01 +0200 Subject: [PATCH] Code review Co-authored-by: Alexander Grund --- libs/s25main/figures/nofWinegrower.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/s25main/figures/nofWinegrower.cpp b/libs/s25main/figures/nofWinegrower.cpp index e57ccec3f..848e4cd21 100644 --- a/libs/s25main/figures/nofWinegrower.cpp +++ b/libs/s25main/figures/nofWinegrower.cpp @@ -127,7 +127,7 @@ nofFarmhand::PointQuality nofWinegrower::GetPointQuality(const MapPoint pt) cons { // Try to "plant" a new grapefield // Still enough wares when starting new work (state = Waiting1)? - if(!workplace->WaresAvailable() && state == State::Waiting1) + if(state == State::Waiting1 && !workplace->WaresAvailable()) return PointQuality::NotPossible; // Do not build on road