aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/dicerollernode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/dicerollernode.cpp')
-rw-r--r--node/dicerollernode.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/node/dicerollernode.cpp b/node/dicerollernode.cpp
index c21b53c..f068f4b 100644
--- a/node/dicerollernode.cpp
+++ b/node/dicerollernode.cpp
@@ -1,4 +1,6 @@
#include "dicerollernode.h"
+#include "die.h"
+
#include <QDateTime>
#include <QDebug>
@@ -16,7 +18,9 @@ void DiceRollerNode::run(ExecutionNode* previous)
m_diceCount = previous->getResult()->getSum();
for(quint64 i=0; i < m_diceCount ; ++i)
{
- m_result.insertResult(rollDice());
+ Die die;
+ die.setValue(rollDice());
+ m_result.insertResult(die);
}
if(NULL!=m_nextNode)
{