summaryrefslogtreecommitdiff
path: root/src/object_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-27 22:51:16 +0000
committerrubidium <rubidium@openttd.org>2010-08-27 22:51:16 +0000
commit2c1ffd79f171ab679277821f25a5013d66324984 (patch)
tree0d780b3a028570da678ec6a2a6638c63ba2e7e38 /src/object_cmd.cpp
parent0d8091a7c37d22b7632dff30d9046083cb3db5b3 (diff)
downloadopenttd-2c1ffd79f171ab679277821f25a5013d66324984.tar.xz
(svn r20643) -Fix (r20641): != != ==
Diffstat (limited to 'src/object_cmd.cpp')
-rw-r--r--src/object_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object_cmd.cpp b/src/object_cmd.cpp
index fc891df54..a8e8e5e19 100644
--- a/src/object_cmd.cpp
+++ b/src/object_cmd.cpp
@@ -134,7 +134,7 @@ CommandCost CmdBuildObject(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
int size_y = GB(spec->size, 4, 4);
TileArea ta(tile, size_x, size_y);
- if (type != OBJECT_OWNED_LAND) {
+ if (type == OBJECT_OWNED_LAND) {
/* Owned land is special as it can be placed on any slope. */
cost.AddCost(DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR));
} else {