From 40796e9f19cb199405121808f8a95cb1080bddaa Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 23 Aug 2008 16:16:37 +0000 Subject: (svn r14141) -Fix (r14135): Savegame conversion could assign a recently removed waypoint (grey sign) to a wrong owner. --- src/openttd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/openttd.cpp b/src/openttd.cpp index 95551dbb5..afd5ceb6c 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -2522,7 +2522,7 @@ bool AfterLoadGame() Waypoint *wp; Owner owner; FOR_ALL_WAYPOINTS(wp) { - owner = GetTileOwner(wp->xy); + owner = (IsTileType(wp->xy, MP_RAILWAY) && IsRailWaypoint(wp->xy) ? GetTileOwner(wp->xy) : OWNER_NONE); wp->owner = IsValidPlayerID(owner) ? owner : OWNER_NONE; } } -- cgit v1.2.3-70-g09d2