diff --git a/_modules/story_graph/engine.html b/_modules/story_graph/engine.html index 53f8c683..f558fd12 100644 --- a/_modules/story_graph/engine.html +++ b/_modules/story_graph/engine.html @@ -676,13 +676,22 @@
).afirst()
# else return default out
- if exit_door is None:
- raise GraphDeadEnd()
-
- try:
- return (await exit_door.out_edges.order_by("?").select_related("in_node_door__node").afirst()).in_node_door.node # type: ignore
- except AttributeError:
- raise GraphDeadEnd()
# search for next node
try:
- await self.get_next_node()
+ self._current_node = await self.get_next_node()
except GraphDeadEnd:
log.info(f"Ran into a dead end on {self.graph} on {self._current_node}")
return