V8Li
Member
- Joined
- Apr 9, 2008
- Messages
- 200
- Reaction score
- 0
- Points
- 16
I have this simple code:
And I am calling later in the code the x, y and z like this: C->x, C->y, C->z.
I am doing something wrong since I get this warning message:
Plus I get some crazy values in Orbitersim and a CTD soon after. I think it has something to do with the way I've used the pointer but I have no idea what I've done wrong. Am I missing something?
Code:
VECTOR3 *C;
oapiCameraGlobalDir(C);
I am doing something wrong since I get this warning message:
Code:
warning C4700: uninitialized local variable 'C' used