Skip to content

Commit

Permalink
unity mono Module attach: remove extra +2
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKnauth committed Jan 28, 2024
1 parent c66210e commit c91cf32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game_engine/unity/mono.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl Module {
sig.scan_process_range(process, (mono_assembly_foreach_address, 0x100))
})? + 2;

process.read::<Address32>(ptr + 2).ok()?.into()
process.read::<Address32>(ptr).ok()?.into()
},
#[cfg(feature = "std")]
(false, BinaryFormat::MachO) => {
Expand Down

0 comments on commit c91cf32

Please sign in to comment.