aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node
diff options
context:
space:
mode:
authorobiwankennedy <renaud@rolisteam.org>2014-01-16 11:17:05 +0100
committerobiwankennedy <renaud@rolisteam.org>2014-01-16 11:17:05 +0100
commit77bcb85b623467f079745e692aa48fc723103573 (patch)
tree8c102bd788b273b50b95279e84a02cb5e3cf1af3 /node
parentb8ce3b9caf571ab858a0e2c08717c5c8451eaf65 (diff)
downloadOneRoll-77bcb85b623467f079745e692aa48fc723103573.tar.gz
OneRoll-77bcb85b623467f079745e692aa48fc723103573.zip
Update countexecutenode.cpp
hasValid API
Diffstat (limited to 'node')
-rw-r--r--node/countexecutenode.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/node/countexecutenode.cpp b/node/countexecutenode.cpp
index 44849da..92887bd 100644
--- a/node/countexecutenode.cpp
+++ b/node/countexecutenode.cpp
@@ -27,10 +27,7 @@ void CountExecuteNode::run(ExecutionNode *previous)
qint64 sum = 0;
foreach(Die* dice,diceList)
{
- if(m_validator->isValid(dice))
- {
- ++sum;
- }
+ sum+=m_validator->hasValid(dice,true);
}
m_scalarResult->setValue(sum);