summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 f10ed4f40..bd9f6b184 100644
--- a/src/object_cmd.cpp
+++ b/src/object_cmd.cpp
@@ -179,7 +179,7 @@ CommandCost CmdBuildObject(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
}
/* So, now the surface is checked... check the slope of said surface. */
- if (spec->callback_mask & CBM_OBJ_SLOPE_CHECK) {
+ if (HasBit(spec->callback_mask, CBM_OBJ_SLOPE_CHECK)) {
TILE_AREA_LOOP(t, ta) {
TileIndex diff = t - tile;
uint16 callback = GetObjectCallback(CBID_OBJECT_LAND_SLOPE_CHECK, GetTileSlope(t, NULL), TileY(diff) << 4 | TileX(diff), spec, NULL, t);