summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2011-10-17 20:28:56 +0000
committeryexo <yexo@openttd.org>2011-10-17 20:28:56 +0000
commit743050a9e06328619d1fac3ec8070b0cff4c5262 (patch)
tree19dd0fcf8cae8707dec2d34df08eae138bf80c05 /src
parent99ed5eb7c5fcbc2e7d0f9423036e065a781aedbe (diff)
downloadopenttd-743050a9e06328619d1fac3ec8070b0cff4c5262.tar.xz
(svn r23036) -Fix (r22970): swapped parameters resulted in wrong vehicle names
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 39ae46669..36802cfb4 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -5153,7 +5153,7 @@ static void FeatureNewName(ByteReader *buf)
if (!generic) {
Engine *e = GetNewEngine(_cur.grffile, (VehicleType)feature, id, HasBit(_cur.grfconfig->flags, GCF_STATIC));
if (e == NULL) break;
- StringID string = AddGRFString(_cur.grffile->grfid, e->index, lang, false, new_scheme, name, e->info.string_id);
+ StringID string = AddGRFString(_cur.grffile->grfid, e->index, lang, new_scheme, false, name, e->info.string_id);
e->info.string_id = string;
} else {
AddGRFString(_cur.grffile->grfid, id, lang, new_scheme, true, name, STR_UNDEFINED);