Laserlicht 1 year ago
parent
commit
2e2d8f8833
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/mapObjects/MiscObjects.cpp

+ 1 - 1
lib/mapObjects/MiscObjects.cpp

@@ -202,7 +202,7 @@ ui32 CGMine::getProducedQuantity() const
 	auto ret = producedQuantity * playerSettings->handicap.percentIncome / 100;
 	if(ret == 0 && producedQuantity > 0) // create at least 1 resource
 		ret = 1;
-	return producedQuantity * playerSettings->handicap.percentIncome / 100;
+	return ret;
 }
 
 void CGMine::battleFinished(const CGHeroInstance *hero, const BattleResult &result) const