Fix: unused variable warnings

This commit is contained in:
glx
2019-12-18 18:21:23 +01:00
committed by Niels Martin Hansen
parent ae532008ff
commit e3c75a30ba
3 changed files with 5 additions and 7 deletions

View File

@@ -182,9 +182,7 @@ RoadType AllocateRoadType(RoadTypeLabel label, RoadTramType rtt)
*/
bool RoadVehiclesAreBuilt()
{
for (const RoadVehicle *rv : RoadVehicle::Iterate()) return true;
return false;
return !RoadVehicle::Iterate().empty();
}
/**