summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-07-19 17:28:55 +0000
committerpeter1138 <peter1138@openttd.org>2007-07-19 17:28:55 +0000
commitd93fcea1f8b706349b0e07a565bed871dc047f7b (patch)
tree123916ae2dab9a041057e3f622d66203cd2e7607 /src/newgrf.cpp
parent58a3b5e60dde6a4906f7334e230638ff69fad1b8 (diff)
downloadopenttd-d93fcea1f8b706349b0e07a565bed871dc047f7b.tar.xz
(svn r10628) -Fix (r10606,FS#1055): Revert r10606 and fix the plural problem another way.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 1c53d34a1..d7a3d7af6 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -1532,11 +1532,11 @@ static bool CargoChangeInfo(uint cid, int numinfo, int prop, byte **bufp, int le
break;
case 0x09: /* String ID for cargo type name */
- cs->name_plural = grf_load_word(&buf);
+ cs->name = grf_load_word(&buf);
break;
case 0x0A: /* String for 1 unit of cargo */
- cs->name = grf_load_word(&buf);
+ cs->name_single = grf_load_word(&buf);
break;
case 0x0B:
@@ -5259,7 +5259,7 @@ static void MapNewCargoStrings()
if (!cs->IsValid() || cs->grfid == 0) continue;
cs->name = MapGRFStringID(cs->grfid, cs->name);
- cs->name_plural = MapGRFStringID(cs->grfid, cs->name_plural);
+ cs->name_single = MapGRFStringID(cs->grfid, cs->name_single);
cs->units_volume = MapGRFStringID(cs->grfid, cs->units_volume);
cs->quantifier = MapGRFStringID(cs->grfid, cs->quantifier);
cs->abbrev = MapGRFStringID(cs->grfid, cs->abbrev);