changeset 14190:ca3d4f2616e4 draft

(svn r18739) -Fix (r18719): building trees on snow with rocks underneed caused an assert
author yexo <yexo@openttd.org>
date Wed, 06 Jan 2010 09:08:43 +0000
parents 6b31c7a77ef6
children facfc7b94660
files src/tree_cmd.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/tree_cmd.cpp
+++ b/src/tree_cmd.cpp
@@ -382,7 +382,7 @@
 
 				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);