m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dice.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dice.js b/src/dice.js
index 5edc892..1587eef 100644
--- a/src/dice.js
+++ b/src/dice.js
@@ -5,7 +5,7 @@ const pool = (die) => {
}
const roll = (die) => {
- return pool(die).reduce((a, b) => (a + b))
+ return pool(die).reduce((a, b) => (a + b), 0)
}
const d = (number, sides) => {