mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 07:29:44 +00:00
(svn r14141) -Fix (r14135): Savegame conversion could assign a recently removed waypoint (grey sign) to a wrong owner.
This commit is contained in:
parent
63f4726e06
commit
4e0faffc72
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user