Codechange: use std::string as script API return type
This commit is contained in:
@@ -137,7 +137,7 @@ public:
|
||||
* @pre IsPrimaryVehicle(vehicle_id).
|
||||
* @return The name the vehicle has.
|
||||
*/
|
||||
static char *GetName(VehicleID vehicle_id);
|
||||
static std::optional<std::string> GetName(VehicleID vehicle_id);
|
||||
|
||||
/**
|
||||
* Get the owner of a vehicle.
|
||||
|
Reference in New Issue
Block a user