diff options
author | frosch <frosch@openttd.org> | 2008-08-23 19:14:27 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-08-23 19:14:27 +0000 |
commit | 4335c272182c2fdde399a3f9158bbd6262f96ed5 (patch) | |
tree | dfae9d9fa8e461a49fbac56ebab5cee09c38e9f8 /src | |
parent | 1de6c87cdd6edc5ee7b78309e21ae174748f2684 (diff) | |
download | openttd-4335c272182c2fdde399a3f9158bbd6262f96ed5.tar.xz |
(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.
Diffstat (limited to 'src')
-rw-r--r-- | src/waypoint.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/waypoint.cpp b/src/waypoint.cpp index aaaedd73e..d0b783eae 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; |