1
0
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:
Zeno Rogue 2020-12-26 17:19:45 +01:00
parent 5acdab45d6
commit c906a2b906

View File

@ -222,7 +222,7 @@ EX void computePathdist(eMonster param, bool include_allies IS(true)) {
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);
}
}