effect(function, var number, VECTOR* pos, VECTOR* vel)
function is the function which gets called, so try to find it and debug again. The number could be too high so it might crash, pos or vel are pointers and have to be valid or else it will crash. You should try to get fire_effect and debug it.