aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/libparser/node/explodedicenode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libparser/node/explodedicenode.cpp')
-rw-r--r--src/libparser/node/explodedicenode.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libparser/node/explodedicenode.cpp b/src/libparser/node/explodedicenode.cpp
index 7c9708b..5f51f95 100644
--- a/src/libparser/node/explodedicenode.cpp
+++ b/src/libparser/node/explodedicenode.cpp
@@ -28,7 +28,7 @@ void ExplodeDiceNode::run(ExecutionNode* previous)
die->displayed();
}
- quint64 limit= -1;
+ qint64 limit= -1;
if(m_limit)
{
m_limit->run(this);
@@ -39,8 +39,9 @@ void ExplodeDiceNode::run(ExecutionNode* previous)
}
bool hasExploded= false;
- std::function<void(Die*, qint64)> f= [&hasExploded, this, limit](Die* die, qint64) {
- static QHash<Die*, quint64> explodePerDice;
+ std::function<void(Die*, qint64)> f= [&hasExploded, this, limit](Die* die, qint64)
+ {
+ static QHash<Die*, qint64> explodePerDice;
if(Dice::CONDITION_STATE::ALWAYSTRUE
== m_validatorList->isValidRangeSize(std::make_pair<qint64, qint64>(die->getBase(), die->getMaxValue())))
{