diff --git a/landgen.cpp b/landgen.cpp index 13e07b8c..962b6189 100644 --- a/landgen.cpp +++ b/landgen.cpp @@ -2372,7 +2372,7 @@ void setdist(cell *c, int d, cell *from) { // this fixes the following problem: // http://steamcommunity.com/app/342610/discussions/0/1470840994970724215/ - if(!generatingEquidistant && from && d >= 7) { + if(!generatingEquidistant && from && d >= 7 && c->land) { int cdi = celldist(c); if(celldist(from) > cdi) { forCellCM(c2, c) if(celldist(c2) < cdi) {