mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-19 15:25:39 +00:00
(svn r16366) -Fix: Use a valid StringID as fall-back when undefined generic newgrf strings of vehicles are requested.
This commit is contained in:
parent
b801d801b5
commit
82532ac12e
@ -3471,7 +3471,7 @@ static void FeatureNewName(byte *buf, size_t len)
|
|||||||
StringID string = AddGRFString(_cur_grffile->grfid, e->index, lang, new_scheme, name, e->info.string_id);
|
StringID string = AddGRFString(_cur_grffile->grfid, e->index, lang, new_scheme, name, e->info.string_id);
|
||||||
e->info.string_id = string;
|
e->info.string_id = string;
|
||||||
} else {
|
} else {
|
||||||
AddGRFString(_cur_grffile->grfid, id, lang, new_scheme, name, id);
|
AddGRFString(_cur_grffile->grfid, id, lang, new_scheme, name, STR_UNDEFINED);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user