src/industry_cmd.cpp
changeset 6091 c8827d9ae04a
parent 5909 35595e20c0c4
child 6092 53c6b9b18d0b
--- a/src/industry_cmd.cpp	Tue Feb 20 17:52:43 2007 +0000
+++ b/src/industry_cmd.cpp	Tue Feb 20 22:09:21 2007 +0000
@@ -26,6 +26,7 @@
 #include "date.h"
 #include "water_map.h"
 #include "tree_map.h"
+#include "cargotype.h"
 
 void ShowIndustryViewWindow(int industry);
 void BuildOilRig(TileIndex tile);
@@ -1624,7 +1625,7 @@
 				mag = abs(percent);
 				if (mag >= 10) {
 					SetDParam(2, mag);
-					SetDParam(0, _cargoc.names_s[i->produced_cargo[j]]);
+					SetDParam(0, GetCargo(i->produced_cargo[j])->name);
 					SetDParam(1, i->index);
 					AddNewsItem(
 						percent >= 0 ? STR_INDUSTRY_PROD_GOUP : STR_INDUSTRY_PROD_GODOWN,