Codechange: use std::string as script API return type
This commit is contained in:
@@ -193,7 +193,7 @@ public:
|
||||
* Get the last error in string format (for human readability).
|
||||
* @return An ErrorMessage enum item, as string.
|
||||
*/
|
||||
static char *GetLastErrorString();
|
||||
static std::optional<std::string> GetLastErrorString();
|
||||
|
||||
/**
|
||||
* Get the error based on the OpenTTD StringID.
|
||||
|
Reference in New Issue
Block a user