null pointer crash thnigy

This commit is contained in:
Enno Rehling 2005-05-01 21:29:55 +00:00
parent 5831dc5df4
commit 068b26c54b
1 changed files with 1 additions and 1 deletions

View File

@ -514,7 +514,7 @@ autoseed(newfaction ** players, int nsize)
--rsize; --rsize;
for (d=0;d!=MAXDIRECTIONS;++d) { for (d=0;d!=MAXDIRECTIONS;++d) {
region * rn = rconnect(r, d); region * rn = rconnect(r, d);
if (fval(rn, FL_MARK)) continue; if (rn && fval(rn, FL_MARK)) continue;
if (virgin_region(rn)) { if (virgin_region(rn)) {
if (rn==NULL) { if (rn==NULL) {
rn = new_region(r->x + delta_x[d], r->y + delta_y[d]); rn = new_region(r->x + delta_x[d], r->y + delta_y[d]);