From d917271e294a6b5e41cbfb3658fede9e5b5de659 Mon Sep 17 00:00:00 2001 From: Diavolo Date: Fri, 27 May 2022 13:23:41 +0200 Subject: [PATCH] Fix format string in gsc function --- src/Components/Modules/ScriptExtension.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Components/Modules/ScriptExtension.cpp b/src/Components/Modules/ScriptExtension.cpp index 31b55ae1..e47bf92c 100644 --- a/src/Components/Modules/ScriptExtension.cpp +++ b/src/Components/Modules/ScriptExtension.cpp @@ -417,5 +417,8 @@ namespace Components Utils::Hook(0x41BED2, ScriptExtension::Scr_SetObjectFieldStub, HOOK_CALL).install()->quick(); // SetEntityFieldValue Utils::Hook(0x5FBF01, ScriptExtension::Scr_SetClientFieldStub, HOOK_CALL).install()->quick(); // Scr_SetObjectField Utils::Hook(0x4FF413, ScriptExtension::Scr_GetEntityFieldStub, HOOK_CALL).install()->quick(); // Scr_GetObjectField + + // Fix format string in Scr_RandomFloatRange + Utils::Hook::Set(0x5F10C6, "Scr_RandomFloatRange parms: %f %f "); } }