Codechange: use std::string as script API return type
This commit is contained in:
@@ -79,7 +79,7 @@ public:
|
||||
* @pre IsValidIndustry(industry_id).
|
||||
* @return The name of the industry.
|
||||
*/
|
||||
static char *GetName(IndustryID industry_id);
|
||||
static std::optional<std::string> GetName(IndustryID industry_id);
|
||||
|
||||
/**
|
||||
* Set the custom text of an industry, shown in the GUI.
|
||||
|
Reference in New Issue
Block a user