3d:: fixed crash in Caribbean

This commit is contained in:
Zeno Rogue 2019-03-09 01:36:09 +01:00
parent cf3047a1a5
commit c7eed9db4a
1 changed files with 1 additions and 1 deletions

View File

@ -1537,7 +1537,7 @@ void giantLandSwitch(cell *c, int d, cell *from) {
int mindist = 9;
for(int i=0; i<c->type; i++) {
cell *c2 = c->move(i);
if((eubinary || c2->master->alt) && celldistAlt(c2) < mindist)
if(c2 && (eubinary || c2->master->alt) && celldistAlt(c2) < mindist)
mindist = celldistAlt(c2);
}
if(mindist == 0) beCIsland(c);