Originally Posted By: Widi
Why do you use a Vector POINTER?


Does that really matter? This thread is about this weird error after all...
Well, the reason is that I started with c-script a LONG time ago and read the "from c-script to lite-c" in the manual, there's an example of how to define a vector:

VECTOR* vSpeed = {x=10;y=20;z=30;}

Never thought of defining it without the "*". All of the predefined functions use vector POINTER parameters (vec_diff, vec_add and so on...), so I've always been working with pointers.


It might work by using a real vector instead of a pointer, but still that doesn't chang anything about the fact that using pointers (even accidentally) causes severe trouble and an error which is very hard to fix if you're not aware of the cause. There should at least be some kind of warning in the manual, don't you agree?

Last edited by Alan; 04/18/10 16:27.