From 068b26c54b9c02a6b5d26638551635a71895f973 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 1 May 2005 21:29:55 +0000 Subject: [PATCH] null pointer crash thnigy --- src/common/modules/autoseed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/modules/autoseed.c b/src/common/modules/autoseed.c index 9ee10b558..92f756fb5 100644 --- a/src/common/modules/autoseed.c +++ b/src/common/modules/autoseed.c @@ -514,7 +514,7 @@ autoseed(newfaction ** players, int nsize) --rsize; for (d=0;d!=MAXDIRECTIONS;++d) { region * rn = rconnect(r, d); - if (fval(rn, FL_MARK)) continue; + if (rn && fval(rn, FL_MARK)) continue; if (virgin_region(rn)) { if (rn==NULL) { rn = new_region(r->x + delta_x[d], r->y + delta_y[d]);