fixed crashes in Zebra in Hat and some other geometries

This commit is contained in:
Zeno Rogue 2023-03-28 23:09:11 +02:00
parent a9b6452d25
commit f99e95b914
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ void wanderingZebra(cell *start) {
return; return;
} }
int q = 0; int q = 0;
cell *ctab[8]; cell *ctab[FULL_EDGE];
for(int i=0; i<c->type; i++) { for(int i=0; i<c->type; i++) {
cell *c3 = c->move(i); cell *c3 = c->move(i);
if(c3 && c3 != c2 && c3->land == laZebra && c3->wall == waNone) if(c3 && c3 != c2 && c3->land == laZebra && c3->wall == waNone)