From ba49bb203ab4e13cf51f742781cf0c9b25c710fa Mon Sep 17 00:00:00 2001 From: ? Date: Wed, 27 Feb 2019 15:52:22 +0100 Subject: [PATCH] 3d:: no crash in Power --- landgen.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/landgen.cpp b/landgen.cpp index ba37a60a..324a707a 100644 --- a/landgen.cpp +++ b/landgen.cpp @@ -542,6 +542,7 @@ void giantLandSwitch(cell *c, int d, cell *from) { cell *c2 = c->move(i); if(!c2) continue; cell *c3 = c2->modmove(c->c.spin(i) + 3); + if(!c3) continue; if(c3->land != laPower && c3->land != laBarrier) if(c2->wall != waFire && c2->wall != waGlass) { if(isFire(c)) c->monst = moWitchWinter;