Problem with adding a hex value to a pointer
Hello guys,
I am having an issue with adding the LocalPlayer Offset to the Base Address of a game (Assault Cube).
The values i want to add together are:
base address = 00400000
+
LocalPlayerOffset = 0x109B74
(Look at the Screenshot of the Code in the Attachments)

and as you can see in the console the result is 00826DD0
but this is wrong and i checked it in the internet with an hex calculator and there the result was correct
(Look at the Screenshot of the Hex Calculator in the Attachments)

the actual result should be 00509B74
My Question is, why does visual studio calculate these two values wrong (different)?
Appreciate any help that i receive!
Best regards,
TryToCheat00
I am having an issue with adding the LocalPlayer Offset to the Base Address of a game (Assault Cube).
The values i want to add together are:
base address = 00400000
+
LocalPlayerOffset = 0x109B74
(Look at the Screenshot of the Code in the Attachments)
and as you can see in the console the result is 00826DD0
but this is wrong and i checked it in the internet with an hex calculator and there the result was correct
(Look at the Screenshot of the Hex Calculator in the Attachments)
the actual result should be 00509B74
My Question is, why does visual studio calculate these two values wrong (different)?
Appreciate any help that i receive!
Best regards,
TryToCheat00