diff options
| author | 2017-05-07 13:11:59 +0200 | |
|---|---|---|
| committer | 2017-05-07 13:11:59 +0200 | |
| commit | 34b4cd544333125ce8301b055e47e5492a95a9fb (patch) | |
| tree | 01a493a6336d4d11b5e39e51d854b155eb387619 | |
| parent | 2c5a654619010cf798f3dc5dd9f71e18b88cfe6f (diff) | |
| download | OneRoll-34b4cd544333125ce8301b055e47e5492a95a9fb.tar.gz OneRoll-34b4cd544333125ce8301b055e47e5492a95a9fb.zip | |
-fix error about dice system.
| -rw-r--r-- | node/dicerollernode.cpp | 2 | ||||
| -rw-r--r-- | result/diceresult.cpp | 1 |
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; |