Codechange: use std::string as script API return type
This commit is contained in:
@@ -50,7 +50,7 @@ public:
|
||||
* @pre ScriptNewGRF::IsLoaded(grfid).
|
||||
* @return The name of the NewGRF or null if no name is defined.
|
||||
*/
|
||||
static char *GetName(SQInteger grfid);
|
||||
static std::optional<std::string> GetName(SQInteger grfid);
|
||||
};
|
||||
|
||||
#endif /* SCRIPT_NEWGRF_HPP */
|
||||
|
Reference in New Issue
Block a user