1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

fixed the crash in Wild West

This commit is contained in:
Zeno Rogue 2018-10-28 02:15:11 +01:00
parent f5434f7655
commit 6ec7023501

View File

@ -3152,13 +3152,9 @@ bool makeEmpty(cell *c) {
c->item = itNone;
if(c->land == laWildWest) {
for(int i=0; i<c->type; i++) {
cell *c2 = c->move(i);
if(c2) for(int j=0; j<c->type; j++) {
cell *c3 = c2->move(j);
if(c3) c3->wall = waNone;
}
}
forCellEx(c2, c)
forCellEx(c3, c2)
c3->wall = waNone;
}
return true;