From 9f60ee8f54e5ab9ec5ab0b8e49f1cd197df71dbf Mon Sep 17 00:00:00 2001 From: Daniel GP <96537843+DaniGP17@users.noreply.github.com> Date: Tue, 4 Feb 2025 16:06:32 +0100 Subject: [PATCH] fix(extra-natives-five): draw rect function offset --- code/components/extra-natives-five/src/Draw2dNatives.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/components/extra-natives-five/src/Draw2dNatives.cpp b/code/components/extra-natives-five/src/Draw2dNatives.cpp index 56f992fbdd..b7de8a9ae3 100644 --- a/code/components/extra-natives-five/src/Draw2dNatives.cpp +++ b/code/components/extra-natives-five/src/Draw2dNatives.cpp @@ -13,7 +13,7 @@ static hook::cdecl_stub _allocateDrawRect([]() static hook::cdecl_stub _setDrawRectCoords([]() { - return hook::get_call(hook::get_pattern("F3 44 0F 59 0D ? ? ? ? E8 ? ? ? ? 33 FF", 0x45)); + return hook::get_call(hook::get_pattern("F3 44 0F 59 0D ? ? ? ? E8 ? ? ? ? 33 FF", xbr::IsGameBuildOrGreater<3407>() ? 0x4A : 0x45)); }); static InitFunction initFunction([]()