Skip to content

Commit

Permalink
Merge pull request #2154 from jakub-cfx/fix/gear-struct-offsets
Browse files Browse the repository at this point in the history
feat(extra-natives/five): read current & next gear from correct offsets
  • Loading branch information
blattersturm authored Aug 13, 2023
2 parents 81fd97f + e52f43c commit b972aa2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@ static HookFunction initFunction([]()
{
auto location = hook::get_pattern<char>("A8 02 0F 84 ? ? ? ? 0F B7 86");

CurrentGearOffset = *(uint32_t*)(location + 11);
NextGearOffset = *(uint32_t*)(location + 18);
CurrentGearOffset = *(uint32_t*)(location + 18);
NextGearOffset = *(uint32_t*)(location + 11);
}

{
Expand Down

0 comments on commit b972aa2

Please sign in to comment.