Woah, 3dgs_snake, what you are doing looks pretty risky. The compiler will cast your var to an var* when you call the function like you are doing, and that will likely result in a segfault. You may want to use the & operator for this
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com