Closed frnsys closed 2 years ago
I think the only event that actually uses branch conditions is "New Cuisine"
Just saw the actual error:
panicked at 'index out of bounds: the len is 0 but the index is 0', src/game.rs:121:34
So somehow branch_eval_conditions
is getting branch ids that don't exist:
if (Array.isArray(this.line.next)) {
let branch = this.line.next.find((b) => {
return game.evalBranchConditions(this.eventId, this.regionId, b.id);
});
this.current = branch.line_id;
} else {
recursive use of an object detected which would lead to unsafe aliasing in rust
session:
208b03c6-c3c1-628f-3411-15ae76b97b02
We aren't using dialogue branch conditions in many places so hopefully not too difficult to narrow down the dialogue causing the problem.