diff options
author | alberth <alberth@openttd.org> | 2010-03-06 13:23:33 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-03-06 13:23:33 +0000 |
commit | 6a3dbaf99a91aa223b2541c172f0ded06c55baf2 (patch) | |
tree | 49acf1aa8af1af505e37797a833d9c969d345d2a /src/station_gui.cpp | |
parent | ef5764f98a665f554d168c10ac4f5b147d7e0dc3 (diff) | |
download | openttd-6a3dbaf99a91aa223b2541c172f0ded06c55baf2.tar.xz |
(svn r19350) -Codechange: StationRect::BeforeAddRect() returns a CommandCost.
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r-- | src/station_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index 6efb569f2..e731931dd 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -1293,7 +1293,7 @@ static bool AddNearbyStation(TileIndex tile, void *user_data) T *st = T::Get(sid); if (st->owner != _local_company || _stations_nearby_list.Contains(sid)) return false; - if (st->rect.BeforeAddRect(ctx->tile, ctx->w, ctx->h, StationRect::ADD_TEST)) { + if (st->rect.BeforeAddRect(ctx->tile, ctx->w, ctx->h, StationRect::ADD_TEST).Succeeded()) { *_stations_nearby_list.Append() = sid; } |