mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
fixed a crash in princess AI
This commit is contained in:
parent
5acdab45d6
commit
c906a2b906
@ -222,7 +222,7 @@ EX void computePathdist(eMonster param, bool include_allies IS(true)) {
|
|||||||
onpath(c2, d+1, c->c.spin(i));
|
onpath(c2, d+1, c->c.spin(i));
|
||||||
}
|
}
|
||||||
|
|
||||||
else if(c2->wall == waClosedGate && princess)
|
else if(c2 && c2->wall == waClosedGate && princess)
|
||||||
gd.visit_gate(c2);
|
gd.visit_gate(c2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user