Skip to content

Commit

Permalink
fixed a bug which resulted in transient crashes regarding inf item usage
Browse files Browse the repository at this point in the history
  • Loading branch information
s0t7x committed Feb 8, 2025
1 parent 0c66196 commit 6646f29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example-mods/basics_mod/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class InfiniteItemUse : public _Mod
0xE9, 0x00, 0x00, 0x00, 0x00
};

mod = new Mem::Detour(address, modCode, sizeof(modCode), false, 1);
mod = new Mem::Detour(address, modCode, sizeof(modCode), false, 2);

// Calculate the jump address for detour
mod->shellcode->updateValue<uint32_t>(
Expand Down

0 comments on commit 6646f29

Please sign in to comment.