fixed a crash when running away from Clearing in single-land mode.

This commit is contained in:
Zeno Rogue 2024-03-21 18:19:28 +01:00
parent 616607dc8e
commit 9430c26970
1 changed files with 1 additions and 1 deletions

View File

@ -2317,7 +2317,7 @@ EX void giantLandSwitch(cell *c, int d, cell *from) {
int d = -celldistAlt(c);
if(hrand_monster(2500) < items[itMutant2] + yendor::hardness() - 10 && !reptilecheat)
c->monst = moRedFox;
else if(hrand(100 + d) < d && !reptilecheat)
else if(d > 0 && hrand(100 + d) < d && !reptilecheat)
c->item = itMutant2;
}
}