How does a C++ std::container (vector) store its internals (element address, access by index)?
I am trying to "hack" a game (Red Alert 3), I try to make a program which shows the unit list of my opponents. As for that I first need to find a (static) pointer to my own list which I can do on single player. I have noticed this behaviour: (by looking at which addresses are changed by the add_unit code): if a units hasn't been build yet, create a new address for it (random?) and set the value to 1 (amount of units of that type) when the unit has been already build once in the game, increment the original address of the unit type by 1 This looks to me like std::vector behaviour. Now I am