summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-09-15 22:45:18 +0000
committersmatz <smatz@openttd.org>2008-09-15 22:45:18 +0000
commit00ce8ceb2bf176cf623636b0faacf0b7a0a7aac7 (patch)
treee64c11883cc165fb6beddcfe0914050a8b8f6272 /src/openttd.cpp
parente10127f032ebd6185279863f27264c355e8d2855 (diff)
downloadopenttd-00ce8ceb2bf176cf623636b0faacf0b7a0a7aac7.tar.xz
(svn r14336) -Fix (r14334): when there was a station with custom name in an old savegame, it's default name was empty
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp3
1 files changed, 2 insertions, 1 deletions
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;