From 770c5d0594aaf62ea4a6b6fd9c777c1a8988e616 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 25 Dec 2009 10:04:30 +0000 Subject: [PATCH] (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 --- src/table/strgen_tables.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/table/strgen_tables.h b/src/table/strgen_tables.h index 97f543d5f7..fa252c6392 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},