(svn r14336) -Fix (r14334): when there was a station with custom name in an old savegame, it's default name was empty
authorsmatz
Mon, 15 Sep 2008 22:45:18 +0000
changeset 10150 7f5047689c72
parent 10149 c855d5982951
child 10151 0dd6c35bf0cc
(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
--- a/src/openttd.cpp	Mon Sep 15 19:55:00 2008 +0000
+++ b/src/openttd.cpp	Mon Sep 15 22:45:18 2008 +0000
@@ -1348,7 +1348,8 @@
 		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;