summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-05-20 05:53:19 +0000
committerpeter1138 <peter1138@openttd.org>2007-05-20 05:53:19 +0000
commit72972a171272461e1609e2db7959943c1208c467 (patch)
tree378081b2792f257e674ff208213740581ccf7f90
parent2e65d6e4e76ca4a699a9c6981126fedf151992bf (diff)
downloadopenttd-72972a171272461e1609e2db7959943c1208c467.tar.xz
(svn r9887) -Fix (r9867): Industry production statistics messed up...
-rw-r--r--src/industry_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 6b938bed8..58c9ba9c7 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -1649,8 +1649,8 @@ static void UpdateIndustryStatistics(Industry *i)
}
i->pct_transported[j] = pct;
- i->total_production[0] = i->last_mo_production[0];
- i->last_mo_production[0] = 0;
+ i->total_production[j] = i->last_mo_production[j];
+ i->last_mo_production[j] = 0;
i->total_transported[j] = i->last_mo_transported[j];
i->last_mo_transported[j] = 0;