AGS: Engine: fixed dangerous use of String::Wrapper in logging

From upstream 588d91ab6a09877eab06bf66073239db0d28271b
This commit is contained in:
Thierry Crozat 2022-12-17 17:49:56 +01:00
parent 5772893340
commit c156608796

View File

@ -342,7 +342,7 @@ RuntimeScriptValue Sc_System_SaveConfigToFile(const RuntimeScriptValue *params,
RuntimeScriptValue Sc_System_Log(const RuntimeScriptValue *params, int32_t param_count) {
API_SCALL_SCRIPT_SPRINTF_PURE(Sc_System_Log, 2);
Debug::Printf(kDbgGroup_Script, (MessageType)params[0].IValue, String::Wrapper(scsf_buffer));
Debug::Printf(kDbgGroup_Script, (MessageType)params[0].IValue, scsf_buffer);
return RuntimeScriptValue((int32_t)0);
}