I am using a struct from cocos3d called CC3IntPoint:
typedef struct { GLint x; GLint y; } CC3IntPoint;
When I run my program, it looks fine in the debugger:
(lldb) p pos (CC3IntPoint) $5 = { (GLint) x = 48 (GLint) y = 91 } (lldb) p pos.y (GLint) $6 = 91
However, if I do any math on pos.y , it uses pos.x ! For instance:
(lldb) p pos.y+1 (int) $7 = 49 (lldb) p pos.y*1 (int) $8 = 48
Did I miss something obvious here? Any ideas on how to fix it?
source share