Codechange: use std::string as script API return type
This commit is contained in:
@@ -69,7 +69,7 @@ public:
|
||||
* @pre vehicle_type == ScriptVehicle::VT_ROAD || vehicle_type == ScriptVehicle::VT_RAIL || vehicle_type == ScriptVehicle::VT_WATER
|
||||
* @return The name the bridge has.
|
||||
*/
|
||||
static char *GetName(BridgeID bridge_id, ScriptVehicle::VehicleType vehicle_type);
|
||||
static std::optional<std::string> GetName(BridgeID bridge_id, ScriptVehicle::VehicleType vehicle_type);
|
||||
|
||||
/**
|
||||
* Get the maximum speed of a bridge.
|
||||
|
Reference in New Issue
Block a user