From 4dc83af68825da22b2fc62a442225e4a83b0b68c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 2 Aug 2019 17:55:59 +0200 Subject: [PATCH] fixed a crash when generating Rose Garden in 3D geometries --- landgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/landgen.cpp b/landgen.cpp index 27505608..fe3c7bdf 100644 --- a/landgen.cpp +++ b/landgen.cpp @@ -1840,7 +1840,7 @@ void giantLandSwitch(cell *c, int d, cell *from) { for(int i=0; itype; i++) { cell *c2 = c->move(i); if(c2 && c2->wall == waRose) nww++; - if(!chaosmode) for(int j=0; jtype; j++) { + if(c2 && !chaosmode) for(int j=0; jtype; j++) { cell *c3 = c2->move(j); // note: c3->land is required for Android -- // not strictly equivalent since another land there might be not yet generated