mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-24 06:50:09 +00:00
3d:: fixed crash in Caribbean
This commit is contained in:
parent
cf3047a1a5
commit
c7eed9db4a
@ -1537,7 +1537,7 @@ void giantLandSwitch(cell *c, int d, cell *from) {
|
|||||||
int mindist = 9;
|
int mindist = 9;
|
||||||
for(int i=0; i<c->type; i++) {
|
for(int i=0; i<c->type; i++) {
|
||||||
cell *c2 = c->move(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);
|
mindist = celldistAlt(c2);
|
||||||
}
|
}
|
||||||
if(mindist == 0) beCIsland(c);
|
if(mindist == 0) beCIsland(c);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user