Skip to content

Commit 41f664b

Browse files
committed
Only allow selection of choice with a propensity
1 parent 66c783d commit 41f664b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arrow/obsidian.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ evolve_result evolve(Info *info, double duration, int64_t *state, double *rates)
213213
choice = 0;
214214
progress = 0.0;
215215

216-
while (progress + propensities[choice] < point) {
216+
while (progress + propensities[choice] < point || propensities[choice] == 0) {
217217
progress += propensities[choice];
218218
choice += 1;
219219
}

0 commit comments

Comments
 (0)