Skip to content

Commit

Permalink
Merge branch 'pr-2355'
Browse files Browse the repository at this point in the history
  • Loading branch information
nihonium-cfx committed Jan 29, 2024
2 parents 24d6e85 + 4268ac5 commit 9f5b5a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/components/extra-natives-rdr3/src/GraphicsNatives.cpp
Expand Up @@ -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())
{
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 9f5b5a3

Please sign in to comment.