diff options
author | rubidium <rubidium@openttd.org> | 2008-01-15 13:19:49 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-01-15 13:19:49 +0000 |
commit | fcee6dad935ccd877cdbed05e5c4154dd04b580b (patch) | |
tree | 674e51d7f086d490a4dcb2fded3e60d9f94042d3 /src/table/cargo_const.h | |
parent | e0c61a892173d2e72ea8b2b20bc7007f33c6d96f (diff) | |
download | openttd-fcee6dad935ccd877cdbed05e5c4154dd04b580b.tar.xz |
(svn r11862) -Fix [FS#1559]: when two NewGRFs 'fight' to define the same cargo it could happen that the strings are defined by one cargo and the 'action2' by another and when one assumes that both come from the same NewGRF... So store the GRF ID with the strings. To be extra sure add the same protection mechanism to industries and towns too.
Diffstat (limited to 'src/table/cargo_const.h')
-rw-r--r-- | src/table/cargo_const.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/table/cargo_const.h b/src/table/cargo_const.h index 4fe3d375f..92383823d 100644 --- a/src/table/cargo_const.h +++ b/src/table/cargo_const.h @@ -3,7 +3,7 @@ /* Table of all default cargo types */ #define MK(bt, label, c, e, f, g, h, fr, te, ks1, ks2, ks3, ks4, ks5, l, m) \ - {bt, label, 0, c, c, e, f, {g, h}, fr, te, 0, 0, ks1, ks2, ks3, ks4, ks5, l, m, NULL} + {bt, label, 0, c, c, e, f, {g, h}, fr, te, 0, 0, GRFMappedStringID(ks1, 0), GRFMappedStringID(ks2, 0), GRFMappedStringID(ks3, 0), GRFMappedStringID(ks4, 0), GRFMappedStringID(ks5, 0), l, m, NULL} static const CargoSpec _default_cargo[] = { MK( 0, 'PASS', 152, 1, 3185, 0, 24, false, TE_PASSENGERS, STR_000F_PASSENGERS, STR_002F_PASSENGER, STR_PASSENGERS, STR_QUANTITY_PASSENGERS, STR_ABBREV_PASSENGERS, |