mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-21 15:54:07 +00:00
fixed a crash when generating Rose Garden in 3D geometries
This commit is contained in:
parent
0be99b931f
commit
4dc83af688
@ -1840,7 +1840,7 @@ void giantLandSwitch(cell *c, int d, cell *from) {
|
|||||||
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(c2 && c2->wall == waRose) nww++;
|
if(c2 && c2->wall == waRose) nww++;
|
||||||
if(!chaosmode) for(int j=0; j<c2->type; j++) {
|
if(c2 && !chaosmode) for(int j=0; j<c2->type; j++) {
|
||||||
cell *c3 = c2->move(j);
|
cell *c3 = c2->move(j);
|
||||||
// note: c3->land is required for Android --
|
// note: c3->land is required for Android --
|
||||||
// not strictly equivalent since another land there might be not yet generated
|
// not strictly equivalent since another land there might be not yet generated
|
||||||
|
Loading…
x
Reference in New Issue
Block a user