summaryrefslogtreecommitdiff
path: root/src/object_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-12-10 21:32:52 +0000
committerrubidium <rubidium@openttd.org>2010-12-10 21:32:52 +0000
commit5d0da9492e2c8f296f2689e3174e8d9832c7872d (patch)
treee271e6d6d625d0c5eea4ba0a9ef8ae4ca360923f /src/object_cmd.cpp
parentcd6180a46d0f15f66f170fc89886980e7a49dab7 (diff)
downloadopenttd-5d0da9492e2c8f296f2689e3174e8d9832c7872d.tar.xz
(svn r21454) -Codechange: add support for object variable 48
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 945a416d9..f5e3e0cf4 100644
--- a/src/object_cmd.cpp
+++ b/src/object_cmd.cpp
@@ -212,7 +212,7 @@ CommandCost CmdBuildObject(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
uint16 callback = CALLBACK_FAILED;
if (HasBit(spec->callback_mask, CBM_OBJ_SLOPE_CHECK)) {
TileIndex diff = t - tile;
- callback = GetObjectCallback(CBID_OBJECT_LAND_SLOPE_CHECK, GetTileSlope(t, NULL), TileY(diff) << 4 | TileX(diff), spec, NULL, t);
+ callback = GetObjectCallback(CBID_OBJECT_LAND_SLOPE_CHECK, GetTileSlope(t, NULL), TileY(diff) << 4 | TileX(diff), spec, NULL, t, view);
}
if (callback == CALLBACK_FAILED) {