Hi,

when I start my project with -diag everything runs fine.

But without I get a "Crash in goto_node".

Code:
void goto_node(ENTITY* ent, int nodenr) {	
	VECTOR ptemp;
	diag("\ngoto_node:");
	diag(str_for_num(NULL, nodenr));
	var result = path_getnode(ent, nodenr, ptemp, NULL);
	if (result != 0) {		
		diag_var("\nnode.x: %6.3f",ptemp.x);
		diag_var("\nnode.y: %6.3f",ptemp.y);
		diag_var("\nnode.z: %6.3f",ptemp.z);
		rotateToPosition(ent, ptemp);			
		initPos(ent);
		path_MDJK_find(ent, ent.PtDep, nodenr);
		ent.walkMode = 1;
	}
}


Can someone help me what's wrong with this function and why the crash don't occur when using -diag?

Best regards,
Pegamode.