summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-01-06 09:08:43 +0000
committeryexo <yexo@openttd.org>2010-01-06 09:08:43 +0000
commit509d533c51462f0eb5321747a8594e524415b52a (patch)
treeb551014db5b0a47d970966ca1edce3bf8bd109d2
parent06842771a8f3a778ec519725dd4f9eeff4dbc220 (diff)
downloadopenttd-509d533c51462f0eb5321747a8594e524415b52a.tar.xz
(svn r18739) -Fix (r18719): building trees on snow with rocks underneed caused an assert
-rw-r--r--src/tree_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tree_cmd.cpp b/src/tree_cmd.cpp
index 2d0d5582d..800cc73c5 100644
--- a/src/tree_cmd.cpp
+++ b/src/tree_cmd.cpp
@@ -382,7 +382,7 @@ CommandCost CmdPlantTree(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
if (IsTileType(tile, MP_CLEAR)) {
/* Remove fields or rocks. Note that the ground will get barrened */
- switch (GetClearGround(tile)) {
+ switch (GetRawClearGround(tile)) {
case CLEAR_FIELDS:
case CLEAR_ROCKS: {
CommandCost ret = DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);