summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-11-16 20:39:30 +0000
committerfrosch <frosch@openttd.org>2011-11-16 20:39:30 +0000
commit50b76125cdd16ad9a71f342f001a81326047be4f (patch)
tree027a82a7595a5520dbbd0c6b3cfeea30d647d648 /src
parente407e4af28b04aa4bca8d804f57c0e60859b6599 (diff)
downloadopenttd-50b76125cdd16ad9a71f342f001a81326047be4f.tar.xz
(svn r23236) -Fix (r23141): Construction of objects was always rejected.
Diffstat (limited to 'src')
-rw-r--r--src/object_cmd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/object_cmd.cpp b/src/object_cmd.cpp
index d2d872e4c..b44eebaff 100644
--- a/src/object_cmd.cpp
+++ b/src/object_cmd.cpp
@@ -247,7 +247,8 @@ CommandCost CmdBuildObject(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
} else {
/* The meaning of bit 10 is inverted for a grf version < 8. */
if (spec->grf_prop.grffile->grf_version < 8) ToggleBit(callback, 10);
- return GetErrorMessageFromLocationCallbackResult(callback, spec->grf_prop.grffile->grfid, STR_ERROR_LAND_SLOPED_IN_WRONG_DIRECTION);
+ CommandCost ret = GetErrorMessageFromLocationCallbackResult(callback, spec->grf_prop.grffile->grfid, STR_ERROR_LAND_SLOPED_IN_WRONG_DIRECTION);
+ if (ret.Failed()) return ret;
}
}