diff options
| author | 2023-01-22 17:30:55 +0100 | |
|---|---|---|
| committer | 2023-01-22 17:30:55 +0100 | |
| commit | 0877e5a4cb56ba891985ac49c36b141fec8f38b2 (patch) | |
| tree | 443496e48621cb748c40873647c52943f2456917 /src/libparser/node/explodedicenode.cpp | |
| parent | e68edb4ca183e971c851ced5d91e2e91ab0fa946 (diff) | |
| download | OneRoll-0877e5a4cb56ba891985ac49c36b141fec8f38b2.tar.gz OneRoll-0877e5a4cb56ba891985ac49c36b141fec8f38b2.zip | |
Update diceParser
Diffstat (limited to 'src/libparser/node/explodedicenode.cpp')
| -rw-r--r-- | src/libparser/node/explodedicenode.cpp | 7 |
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()))) { |