Codechange: use string/fmt instead of printf for squirrel's PRINTFUNC
This commit is contained in:
@@ -44,10 +44,10 @@ ScriptStorage::~ScriptStorage()
|
||||
* @param error_msg Is this an error message?
|
||||
* @param message The actual message text.
|
||||
*/
|
||||
static void PrintFunc(bool error_msg, const SQChar *message)
|
||||
static void PrintFunc(bool error_msg, const std::string &message)
|
||||
{
|
||||
/* Convert to OpenTTD internal capable string */
|
||||
ScriptController::Print(error_msg, message);
|
||||
ScriptController::Print(error_msg, message.c_str());
|
||||
}
|
||||
|
||||
ScriptInstance::ScriptInstance(const char *APIName) :
|
||||
|
Reference in New Issue
Block a user