mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-24 04:34:16 +01:00
Codefix: Add missing const inside script functions. (#12794)
Scripts do not modify items directly, marking them const enforces this.
This commit is contained in:
@@ -462,7 +462,7 @@
|
||||
{
|
||||
if (!IsPrimaryVehicle(vehicle_id)) return false;
|
||||
|
||||
Vehicle *v = ::Vehicle::Get(vehicle_id);
|
||||
const Vehicle *v = ::Vehicle::Get(vehicle_id);
|
||||
return v->orders != nullptr && v->orders->GetNumVehicles() > 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user