summaryrefslogtreecommitdiff
path: root/src/unmovable_cmd.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-02-14 15:30:08 +0000
committeralberth <alberth@openttd.org>2010-02-14 15:30:08 +0000
commite8d40d6a1987220137e386b1f505947de8d8b514 (patch)
tree34a4e0fcda875f6d15626f8a53de434d90278c56 /src/unmovable_cmd.cpp
parent151babee57709529e8db2a3871abc4bf66feb1ec (diff)
downloadopenttd-e8d40d6a1987220137e386b1f505947de8d8b514.tar.xz
(svn r19128) -Codechange: CommandCost cost methods return void instead of a copy of *this.
Diffstat (limited to 'src/unmovable_cmd.cpp')
-rw-r--r--src/unmovable_cmd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/unmovable_cmd.cpp b/src/unmovable_cmd.cpp
index c48263abd..6f2359d28 100644
--- a/src/unmovable_cmd.cpp
+++ b/src/unmovable_cmd.cpp
@@ -159,7 +159,8 @@ CommandCost CmdPurchaseLandArea(TileIndex tile, DoCommandFlag flags, uint32 p1,
MarkTileDirtyByTile(tile);
}
- return cost.AddCost(GetUnmovableSpec(UNMOVABLE_OWNED_LAND)->GetBuildingCost());
+ cost.AddCost(GetUnmovableSpec(UNMOVABLE_OWNED_LAND)->GetBuildingCost());
+ return cost;
}
/** Sell a land area. Actually you only sell one tile, so