diff options
Diffstat (limited to 'src/script/api/script_vehicle.hpp')
-rw-r--r-- | src/script/api/script_vehicle.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/script/api/script_vehicle.hpp b/src/script/api/script_vehicle.hpp index 9a6723cb9..da36a542c 100644 --- a/src/script/api/script_vehicle.hpp +++ b/src/script/api/script_vehicle.hpp @@ -113,15 +113,14 @@ public: /** * Set the name of a vehicle. * @param vehicle_id The vehicle to set the name for. - * @param name The name for the vehicle. + * @param name The name for the vehicle (can be either a raw string, or a ScriptText object). * @pre IsValidVehicle(vehicle_id). - * @pre 'name' must have at least one character. - * @pre 'name' must have at most 30 characters. + * @pre name != NULL && len(name) != 0. * @game @pre Valid ScriptCompanyMode active in scope. * @exception ScriptError::ERR_NAME_IS_NOT_UNIQUE * @return True if and only if the name was changed. */ - static bool SetName(VehicleID vehicle_id, const char *name); + static bool SetName(VehicleID vehicle_id, Text *name); /** * Get the name of a vehicle. |