(svn r9427) -Codechange: remove redundant variable
authorpeter1138
Sat, 24 Mar 2007 14:42:11 +0000
changeset 6695 77db45d69005
parent 6694 a10a42eefd52
child 6696 3c2120d41b22
(svn r9427) -Codechange: remove redundant variable
src/economy.cpp
--- a/src/economy.cpp	Sat Mar 24 09:12:03 2007 +0000
+++ b/src/economy.cpp	Sat Mar 24 14:42:11 2007 +0000
@@ -1114,7 +1114,6 @@
 
 int32 GetTransportedGoodsIncome(uint num_pieces, uint dist, byte transit_days, CargoID cargo_type)
 {
-	CargoID cargo = cargo_type;
 	const CargoSpec *cs = GetCargo(cargo_type);
 	byte f;
 
@@ -1139,7 +1138,7 @@
 	}
 	if (f < 31) f = 31;
 
-	return BIGMULSS(dist * f * num_pieces, _cargo_payment_rates[cargo], 21);
+	return BIGMULSS(dist * f * num_pieces, _cargo_payment_rates[cargo_type], 21);
 }
 
 static void DeliverGoodsToIndustry(TileIndex xy, CargoID cargo_type, int num_pieces)