summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2021-02-19 09:33:43 -0500
committerBrian Cully <bjc@kublai.com>2021-02-19 09:33:43 -0500
commit335ef36746c30d80f2b979050bfd40a70d4be44b (patch)
tree96bbc6802b5645cd08977c0510a793b6a58b99f1
parent7dfbc8499ee964b2e2ca79d8a8039e0c262f48f5 (diff)
downloadmolsim2-335ef36746c30d80f2b979050bfd40a70d4be44b.tar.gz
molsim2-335ef36746c30d80f2b979050bfd40a70d4be44b.zip
Fix bug with die roll comparison for mutation skip.
-rw-r--r--rules.mjs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.mjs b/rules.mjs
index 176035a..f726a5a 100644
--- a/rules.mjs
+++ b/rules.mjs
@@ -52,7 +52,7 @@ class RollForNucleotide {
}
handleDieRoll() {
- if (this.rules.die.value > Rules.initialGenomeBases) {
+ if (this.rules.die.value > Rules.initialGenomeBases.length) {
this.rules.iterations--
if (this.rules.isLastIteration) {
this.rules.next(new DoNothing(this.rules))