From 46650c54b6a13ef5980eadb24995481f1fd83712 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 9 Jan 2008 16:55:48 +0000 Subject: (svn r11793) -Codechange: pass the expense type via the CommandCost instead of a global variable. Patch by Noldo (FS#1114). --- src/clear_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/clear_cmd.cpp') diff --git a/src/clear_cmd.cpp b/src/clear_cmd.cpp index af8d66b16..60ea33aa4 100644 --- a/src/clear_cmd.cpp +++ b/src/clear_cmd.cpp @@ -32,7 +32,7 @@ static CommandCost ClearTile_Clear(TileIndex tile, byte flags) &_price.clear_roughland, &_price.clear_roughland, }; - CommandCost price; + CommandCost price(EXPENSES_CONSTRUCTION); if (!IsClearGround(tile, CLEAR_GRASS) || GetClearDensity(tile) != 0) { price.AddCost(*clear_price_table[GetClearGround(tile)]); -- cgit v1.2.3-54-g00ecf