aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/dicerollernode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/dicerollernode.cpp')
-rw-r--r--node/dicerollernode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/dicerollernode.cpp b/node/dicerollernode.cpp
index 27750df..8e86cce 100644
--- a/node/dicerollernode.cpp
+++ b/node/dicerollernode.cpp
@@ -47,7 +47,7 @@ void DiceRollerNode::run(ExecutionNode* previous)
Result* result=previous->getResult();
if(NULL!=result)
{
- m_diceCount = result->getScalar();
+ m_diceCount = result->getResult(Result::SCALAR).toReal();
m_result->setPrevious(result);
for(quint64 i=0; i < m_diceCount ; ++i)