diff options
author | alberth <alberth@openttd.org> | 2010-02-14 15:30:08 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-02-14 15:30:08 +0000 |
commit | e8d40d6a1987220137e386b1f505947de8d8b514 (patch) | |
tree | 34a4e0fcda875f6d15626f8a53de434d90278c56 /src/road_cmd.cpp | |
parent | 151babee57709529e8db2a3871abc4bf66feb1ec (diff) | |
download | openttd-e8d40d6a1987220137e386b1f505947de8d8b514.tar.xz |
(svn r19128) -Codechange: CommandCost cost methods return void instead of a copy of *this.
Diffstat (limited to 'src/road_cmd.cpp')
-rw-r--r-- | src/road_cmd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index c877bf0ef..8ee878745 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -888,7 +888,8 @@ CommandCost CmdBuildRoadDepot(TileIndex tile, DoCommandFlag flags, uint32 p1, ui MakeRoadDepot(tile, _current_company, dep->index, dir, rt); MarkTileDirtyByTile(tile); } - return cost.AddCost(_price[PR_BUILD_DEPOT_ROAD]); + cost.AddCost(_price[PR_BUILD_DEPOT_ROAD]); + return cost; } static CommandCost RemoveRoadDepot(TileIndex tile, DoCommandFlag flags) |