1
0
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:
Rubidium
2025-12-13 23:26:02 +01:00
committed by rubidium42
parent 36589abb33
commit 5e2df6d028

View File

@@ -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()) {