(svn r19130) -Codechange: Use references and inlining in CommandCost.

This commit is contained in:
alberth
2010-02-14 15:44:21 +00:00
parent ead01e1dd3
commit 9e302e5fa1
2 changed files with 10 additions and 10 deletions

View File

@@ -687,7 +687,7 @@ CommandCost DoCommandPInternal(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd,
* Also takes a possible error message when it is set.
* @param ret The command to add the cost of.
*/
void CommandCost::AddCost(CommandCost ret)
void CommandCost::AddCost(const CommandCost &ret)
{
this->AddCost(ret.cost);
if (this->success && !ret.success) {