From c54c8721f8eacf3c897137a24c683f41299adb3e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Bergstr=C3=B6m?= <davbe125@student.liu.se>
Date: Fri, 6 Jul 2018 13:03:36 +0200
Subject: [PATCH] Fix bug in original CommandCenter

---
 src/UnitType.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/UnitType.cpp b/src/UnitType.cpp
index e6f2c1d..b3478af 100644
--- a/src/UnitType.cpp
+++ b/src/UnitType.cpp
@@ -84,8 +84,7 @@ bool UnitType::isCombatUnit() const
 
 bool UnitType::isSupplyProvider() const
 {
-    // TODO: Is this a bug?
-    return (supplyProvided() < 0) && !isResourceDepot();
+    return (supplyProvided() > 0) && !isResourceDepot();
 }
 
 bool UnitType::isResourceDepot() const
-- 
GitLab