mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-13 02:52:37 +00:00
(svn r23036) -Fix (r22970): swapped parameters resulted in wrong vehicle names
This commit is contained in:
parent
99ed5eb7c5
commit
743050a9e0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user