changeset 17047:79adc044e86b draft

(svn r21784) -Fix (r16909): crash when converting savegame with custom waypoint name
author smatz <smatz@openttd.org>
date Fri, 14 Jan 2011 16:15:05 +0000
parents c55c4f449d7c
children 61552b237550
files src/saveload/station_sl.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/saveload/station_sl.cpp
+++ b/src/saveload/station_sl.cpp
@@ -64,6 +64,7 @@
 		Town *town         = st->town;
 		StringID string_id = st->string_id;
 		char *name         = st->name;
+		st->name           = NULL;
 		Date build_date    = st->build_date;
 
 		/* Delete the station, so we can make it a real waypoint. */