--- deliantra/server/random_maps/exit.c 2006/02/03 07:14:21 1.1.1.1 +++ deliantra/server/random_maps/exit.c 2006/03/15 14:05:33 1.1.1.2 @@ -289,7 +289,7 @@ * would require keeping a 'next' pointer, ad free_object kills tmp, which * breaks the for loop. */ - if (tmp->type == EXIT && !strncmp(EXIT_PATH(tmp),"/random/", 8)) { + if (tmp->type == EXIT && EXIT_PATH(tmp) && !strncmp(EXIT_PATH(tmp),"/random/", 8)) { remove_ob(tmp); free_object(tmp); break;