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 1f501e5..70fd245 100644
--- a/node/dicerollernode.cpp
+++ b/node/dicerollernode.cpp
@@ -29,7 +29,7 @@ void DiceRollerNode::run(ExecutionNode* previous)
{
m_errors.insert(NO_DICE_TO_ROLL,QObject::tr("No dice to roll"));
}
- auto possibleValue = (m_max-m_min)+1;
+ auto possibleValue = static_cast<quint64>(abs((m_max-m_min)+1));
//qDebug() << possibleValue;
if( possibleValue < m_diceCount && m_unique)
{