Quote:
Originally Posted by MrCrisp
If you only add 0x4 bytes, you are accessing the vtable. Dereference the pointer and add another 0x4 bytes. Then dereference again and you should get the map pointer.
|
If you only add 0x4 bytes, you are accessing the vtable:
Dereference the pointer and add another 0x4 bytes:
Code:
*(DWORD*)(itemInstance + 0x4) + 0x4
Then dereference again and you should get the map pointer:
Code:
mapType* mapPointer = (mapType*)(*(DWORD*)(*(DWORD*)(itemInstance + 0x4) + 0x4));
That just crashes my game... Just to clarify I have other functions and they work just fine, this map is the only thing that I can't get to work.