AGS: Engine: fixed System.Log() may cause exceptions with wrong format

From upstream ec9c494e391db23d587708cbe20cc6203b503396
This commit is contained in:
Walter Agazzi authored and Eugene Sandulenko committed 2023-08-13 10:58:26 +02:00
1 parent d9377bbb63
commit 793a5d6273
1 file changed
+1 -1
+1 -1
View File
@@ -351,7 +351,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, scsf_buffer);
Debug::Printf(kDbgGroup_Script, (MessageType)params[0].IValue, "%s", scsf_buffer);
return RuntimeScriptValue((int32_t)0);
}