Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draw origin index typo in RedM #2355

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions code/components/extra-natives-rdr3/src/GraphicsNatives.cpp
Original file line number Diff line number Diff line change
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
Loading