From 5de17da66e55661250aba173817ed56d0e46cbee Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 23 Aug 2008 19:14:27 +0000 Subject: [PATCH] (svn r14145) -Fix (r14135, r14141): When savegame conversion cannot determine a owner of a greyed waypoint, ensure that the owner is assigned when the waypoint is rebuild. --- src/waypoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/waypoint.cpp b/src/waypoint.cpp index aaaedd73e2..d0b783eae2 100644 --- a/src/waypoint.cpp +++ b/src/waypoint.cpp @@ -231,7 +231,6 @@ CommandCost CmdBuildTrainWaypoint(TileIndex tile, uint32 flags, uint32 p1, uint3 wp->town_index = INVALID_TOWN; wp->name = NULL; wp->town_cn = 0; - wp->owner = owner; } else { /* Move existing (recently deleted) waypoint to the new location */ @@ -251,6 +250,7 @@ CommandCost CmdBuildTrainWaypoint(TileIndex tile, uint32 flags, uint32 p1, uint3 wp->xy = tile; InvalidateWindowData(WC_WAYPOINT_VIEW, wp->index); } + wp->owner = owner; const StationSpec* statspec;