algorithm.c
changeset 13 c2b272938a1f
parent 12 a2c334a71a6b
child 16 fe078fb2e8b4
--- a/algorithm.c	Sun May 07 01:31:50 2006 +0200
+++ b/algorithm.c	Sun May 07 01:33:40 2006 +0200
@@ -605,6 +605,9 @@
 	CopyMap(&maps[0], &origin);
 
 	fill_deps(&maps[0]);
+	/* Initializing actual_map here AT LEAST gives protection against
+	SIGSEGV */
+	actual_map = &maps[0];
 	assert(!are_there_fixed_boxes(&maps[0], new_movements,
 		&num_new_movements));
 	search_did_found(maps, 0, new_movements, num_new_movements, 100, 0);