mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
AGS: Engine: fixed System.Log() may cause exceptions with wrong format
From upstream ec9c494e391db23d587708cbe20cc6203b503396
This commit is contained in:
1 parent
d9377bbb63
commit
793a5d6273
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user