1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-02-02 20:29:17 +00:00

fixed mov[NODIR] in findWormIvy

This commit is contained in:
Zeno Rogue 2018-01-12 23:21:15 +01:00
parent 87ef9a68e3
commit 52196be04e

View File

@ -2474,7 +2474,7 @@ void findWormIvy(cell *c) {
bool bug = true;
for(int i=0; i<c->type; i++) {
cell* c2 = c->mov[i];
if(c2 && isWorm(c2) && c2->mov[c2->mondir] == c) {
if(c2 && isWorm(c2) && c2->mondir != NODIR && c2->mov[c2->mondir] == c) {
settemp(c);
c = c2;
bug = false;