summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2011-01-14 16:15:05 +0000
committersmatz <smatz@openttd.org>2011-01-14 16:15:05 +0000
commitff469ab352e78f20ba13d44a90fae0eb27587d1a (patch)
treeee8cde9b7710f4c585b65b1834a90bdb2973e1ce /src
parentee67d10c803fb32303d94d7d3e5321a0f87cb298 (diff)
downloadopenttd-ff469ab352e78f20ba13d44a90fae0eb27587d1a.tar.xz
(svn r21784) -Fix (r16909): crash when converting savegame with custom waypoint name
Diffstat (limited to 'src')
-rw-r--r--src/saveload/station_sl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/saveload/station_sl.cpp b/src/saveload/station_sl.cpp
index 9e4872402..fbc9d0ac0 100644
--- a/src/saveload/station_sl.cpp
+++ b/src/saveload/station_sl.cpp
@@ -64,6 +64,7 @@ void MoveBuoysToWaypoints()
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. */