mirror of
https://github.com/a2x/cs2-dumper.git
synced 2026-04-17 19:49:58 +08:00
Replace process.read_ptr usage with ptr.read
This commit is contained in:
@@ -23,7 +23,7 @@ impl<T: Sized + Pod> UtlMemory<T> {
|
||||
|
||||
let ptr = Pointer64::from(self.mem.address() + (idx * mem::size_of::<T>()));
|
||||
|
||||
Ok(process.read_ptr(ptr)?)
|
||||
Ok(ptr.read(process)?)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user