Fix: Don't restore backed up vehicle name if it's no longer unique. (#10979)

This commit is contained in:
PeterN
2023-06-09 22:18:55 +01:00
committed by GitHub
parent 6d597879d0
commit 2097719f26
3 changed files with 7 additions and 1 deletions

View File

@@ -178,4 +178,6 @@ void CheckCargoCapacity(Vehicle *v);
bool VehiclesHaveSameEngineList(const Vehicle *v1, const Vehicle *v2);
bool VehiclesHaveSameOrderList(const Vehicle *v1, const Vehicle *v2);
bool IsUniqueVehicleName(const std::string &name);
#endif /* VEHICLE_FUNC_H */