summaryrefslogtreecommitdiff
path: root/src/town_cmd.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-06-03 02:20:27 +0000
committerbelugas <belugas@openttd.org>2008-06-03 02:20:27 +0000
commitb0ada3fbbf25693675a18e3360657816ed5cf2ca (patch)
tree995aadb7b724c94354b6a56dab399357bd204c3c /src/town_cmd.cpp
parent00851610e1e64d8b5e759c425bfd4ddbf8f504ee (diff)
downloadopenttd-b0ada3fbbf25693675a18e3360657816ed5cf2ca.tar.xz
(svn r13367) -Codechange: Allow CircularTileSearch function to return the tile where search has been successful, or INVALID_TILE if it has not
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r--src/town_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index a140f62f8..2967e11da 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -2193,7 +2193,7 @@ static void TownActionBuildStatue(Town *t)
{
TileIndex tile = t->xy;
- if (CircularTileSearch(tile, 9, SearchTileForStatue, t->index)) {
+ if (CircularTileSearch(&tile, 9, SearchTileForStatue, t->index)) {
SetBit(t->statues, _current_player); // Once found and built, "inform" the Town
}
}