From 4268ac5a4229e10f859699eec84d83006188531e Mon Sep 17 00:00:00 2001 From: Disquse Date: Sun, 21 Jan 2024 16:27:09 +0300 Subject: [PATCH] fix(extra-natives/rdr3): draw origin index typo --- code/components/extra-natives-rdr3/src/GraphicsNatives.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/components/extra-natives-rdr3/src/GraphicsNatives.cpp b/code/components/extra-natives-rdr3/src/GraphicsNatives.cpp index d9c58825f5..61bf5e4a18 100644 --- a/code/components/extra-natives-rdr3/src/GraphicsNatives.cpp +++ b/code/components/extra-natives-rdr3/src/GraphicsNatives.cpp @@ -42,7 +42,7 @@ static void RenderScriptIm() // The game never uses this buffer itself, but it *may* be changed in the future updates. // This code isn't ready for such a scenario, so might potentially require tweaks. // Like if something allocate script im buffer before us, we would need to resize it - // and not just rewrite everything with out custom stuff. + // and not just rewrite everything without custom stuff. if (g_scriptImRequests.empty()) { @@ -162,7 +162,7 @@ static HookFunction hookFunction([]() store.m_items[index] = data; store.m_count += 1; - *g_scriptDrawOriginIndex = store.m_count; + *g_scriptDrawOriginIndex = index; }); fx::ScriptEngine::RegisterNativeHandler("CLEAR_DRAW_ORIGIN", [](fx::ScriptContext& context)