diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp index 5ceb36c443..47d7fcbc00 100644 --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -163,7 +163,7 @@ static CommandCost CheckBridgeSlopeSouth(Axis axis, Slope *tileh, uint *z) bool CheckBridge_Stuff(BridgeType bridge_type, uint bridge_len, uint32 flags) { if (flags & DC_QUERY_COST) { - return bridge_len <= (_settings_game.construction.longbridges ? 100 : 16); + return bridge_len <= (_settings_game.construction.longbridges ? 100U : 16U); } if (bridge_type >= MAX_BRIDGES) return false;