Temp->Drag is never initialized to anything. You are telling the engine to write into a garbage pointer, which obviously crashes.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com