mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-18 18:02:37 +01:00
Codefix: move error instead of copying it
This commit is contained in:
@@ -428,7 +428,7 @@ void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transpo
|
||||
}
|
||||
}
|
||||
/* give error cause if no bridges available here*/
|
||||
if (!any_available) ret = type_check;
|
||||
if (!any_available) ret = std::move(type_check);
|
||||
}
|
||||
|
||||
if (!bl.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user