Codechange: use std::move over copying where applicable
This commit is contained in:
@@ -410,7 +410,7 @@ CommandCost CmdBuildObjectArea(DoCommandFlags flags, TileIndex tile, TileIndex s
|
||||
if (c != nullptr && limit-- <= 0) break;
|
||||
|
||||
if (ret.Failed()) {
|
||||
last_error = ret;
|
||||
last_error = std::move(ret);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user