summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-08-05 14:12:39 +0000
committersmatz <smatz@openttd.org>2009-08-05 14:12:39 +0000
commit29287ce1049cfef6ebca806998452c7c36ea93e3 (patch)
tree8b83f94a46e970922757cc809e3ba9163f6cc8d2 /src/saveload
parent5351db3703227d1a6f968901ab4d39bb437ccfca (diff)
downloadopenttd-29287ce1049cfef6ebca806998452c7c36ea93e3.tar.xz
(svn r17069) -Fix (r17004): invalid read when converting old waypoints
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/station_sl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/station_sl.cpp b/src/saveload/station_sl.cpp
index cfc49aeea..e1b547009 100644
--- a/src/saveload/station_sl.cpp
+++ b/src/saveload/station_sl.cpp
@@ -80,7 +80,7 @@ void MoveBuoysToWaypoints()
wp->facilities |= FACIL_DOCK;
}
- wp->rect.BeforeAddTile(st->xy, StationRect::ADD_FORCE);
+ wp->rect.BeforeAddTile(xy, StationRect::ADD_FORCE);
}
}