aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--node/dicerollernode.cpp2
-rw-r--r--result/diceresult.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/node/dicerollernode.cpp b/node/dicerollernode.cpp
index fd92b93..89ba24d 100644
--- a/node/dicerollernode.cpp
+++ b/node/dicerollernode.cpp
@@ -10,7 +10,7 @@
DiceRollerNode::DiceRollerNode(qint64 max,qint64 min)
- : m_max(max),m_diceResult(new DiceResult()),m_min(min)
+ : m_max(max),m_diceResult(new DiceResult()),m_min(min),m_operator(Die::PLUS)
{
m_result=m_diceResult;
}
diff --git a/result/diceresult.cpp b/result/diceresult.cpp
index 08a3672..ddedd1c 100644
--- a/result/diceresult.cpp
+++ b/result/diceresult.cpp
@@ -24,6 +24,7 @@
#include <QDebug>
DiceResult::DiceResult()
+ : m_operator(Die::PLUS)
{
m_resultTypes= (DICE_LIST | SCALAR);
m_homogeneous = true;