forked from github/server
null pointer crash thnigy
This commit is contained in:
parent
5831dc5df4
commit
068b26c54b
|
@ -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]);
|
||||||
|
|
Loading…
Reference in New Issue