# HG changeset patch # User yexo # Date 2010-01-06 09:08:43 # Node ID 9374aa303cdeac26765a275cb8c83e92bce6b2cb # Parent b84caa7472ccae9ceb3fc5d789414a8597d09b42 (svn r18739) -Fix (r18719): building trees on snow with rocks underneed caused an assert diff --git a/src/tree_cmd.cpp b/src/tree_cmd.cpp --- a/src/tree_cmd.cpp +++ b/src/tree_cmd.cpp @@ -382,7 +382,7 @@ CommandCost CmdPlantTree(TileIndex tile, 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);