From a20dae0df1614f8701c1ac3a20a64fe6fd4fda5d Mon Sep 17 00:00:00 2001 From: smatz Date: Mon, 15 Sep 2008 22:45:18 +0000 Subject: (svn r14336) -Fix (r14334): when there was a station with custom name in an old savegame, it's default name was empty --- src/openttd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/openttd.cpp') diff --git a/src/openttd.cpp b/src/openttd.cpp index f43fee95d..afbe2628a 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -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; -- cgit v1.2.3-54-g00ecf