diff options
Diffstat (limited to 'node')
| -rw-r--r-- | node/dicerollernode.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/node/dicerollernode.cpp b/node/dicerollernode.cpp index 73a7218..d8fe49c 100644 --- a/node/dicerollernode.cpp +++ b/node/dicerollernode.cpp @@ -25,6 +25,11 @@ void DiceRollerNode::run(ExecutionNode* previous) m_diceCount = result->getResult(Result::SCALAR).toReal(); m_result->setPrevious(result); + if(m_diceCount == 0) + { + m_errors.insert(NO_DICE_TO_ROLL,QObject::tr("No dice to roll")); + } + for(quint64 i=0; i < m_diceCount ; ++i) { Die* die = new Die(); |