Codechange: use std::string as script API return type
This commit is contained in:
@@ -44,7 +44,7 @@ public:
|
||||
* @pre IsValidEngine(engine_id).
|
||||
* @return The name the engine has.
|
||||
*/
|
||||
static char *GetName(EngineID engine_id);
|
||||
static std::optional<std::string> GetName(EngineID engine_id);
|
||||
|
||||
/**
|
||||
* Get the cargo-type of an engine. In case it can transport multiple cargoes, it
|
||||
|
Reference in New Issue
Block a user