summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-12-25 10:04:30 +0000
committerrubidium <rubidium@openttd.org>2009-12-25 10:04:30 +0000
commit770c5d0594aaf62ea4a6b6fd9c777c1a8988e616 (patch)
treeb92ed90e8dfe0d3f0a782bb8d11a2de4d872119e /src/table
parentaa6081d83085eae889c98c5e3a17e3b9f2b9abfd (diff)
downloadopenttd-770c5d0594aaf62ea4a6b6fd9c777c1a8988e616.tar.xz
(svn r18626) -Fix [FS#3425]: {CARGO} takes 2 parameters, not 1. This made {N:XYZ} commands after CARGO mess up their indices and that then triggered an assertion
Diffstat (limited to 'src/table')
-rw-r--r--src/table/strgen_tables.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/table/strgen_tables.h b/src/table/strgen_tables.h
index 97f543d5f..fa252c639 100644
--- a/src/table/strgen_tables.h
+++ b/src/table/strgen_tables.h
@@ -68,7 +68,7 @@ static const CmdStruct _cmd_structs[] = {
{"STATIONFEATURES", EmitSingleChar, SCC_STATION_FEATURES, 1, C_NONE}, // station features string, icons of the features
{"INDUSTRY", EmitSingleChar, SCC_INDUSTRY_NAME, 1, C_NONE}, // industry, takes an industry #
- {"CARGO", EmitSingleChar, SCC_CARGO, 1, C_NONE},
+ {"CARGO", EmitSingleChar, SCC_CARGO, 2, C_NONE},
{"POWER", EmitSingleChar, SCC_POWER, 1, C_NONE},
{"VOLUME", EmitSingleChar, SCC_VOLUME, 1, C_NONE},
{"VOLUME_S", EmitSingleChar, SCC_VOLUME_SHORT, 1, C_NONE},