mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r14336) -Fix (r14334): when there was a station with custom name in an old savegame, it's default name was empty
This commit is contained in:
parent
bffc5717bc
commit
a20dae0df1
|
@ -1348,7 +1348,8 @@ bool AfterLoadGame()
|
|||
Station *st;
|
||||
FOR_ALL_STATIONS(st) {
|
||||
st->name = CopyFromOldName(st->string_id);
|
||||
if (st->name != NULL) st->string_id = STR_EMPTY;
|
||||
/* generating new name would be too much work for little effect, use the station name fallback */
|
||||
if (st->name != NULL) st->string_id = STR_SV_STNAME_FALLBACK;
|
||||
}
|
||||
|
||||
Town *t;
|
||||
|
|
Loading…
Reference in New Issue