Changeset - r9984:8d9ab6e2809b
[Not reviewed]
master
0 1 0
frosch - 16 years ago 2008-08-23 16:16:37
frosch@openttd.org
(svn r14141) -Fix (r14135): Savegame conversion could assign a recently removed waypoint (grey sign) to a wrong owner.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/openttd.cpp
Show inline comments
 
@@ -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;
 
		}
 
	}
0 comments (0 inline, 0 general)