aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/sortresult.cpp
diff options
context:
space:
mode:
authorobiwankennedy <renaud@rolisteam.org>2014-01-14 18:40:07 +0100
committerobiwankennedy <renaud@rolisteam.org>2014-01-14 18:40:07 +0100
commit137ad92dfe03dc789c55ed14a4561dfa10ee91d9 (patch)
tree21f7c1a18555c05dd9ce40b2d46102ed6fa04f6e /node/sortresult.cpp
parent9eae688153744959516ad2ce728ec55a4ed75ca1 (diff)
downloadOneRoll-137ad92dfe03dc789c55ed14a4561dfa10ee91d9.tar.gz
OneRoll-137ad92dfe03dc789c55ed14a4561dfa10ee91d9.zip
Update sortresult.cpp
Adding previous result API.
Diffstat (limited to 'node/sortresult.cpp')
-rw-r--r--node/sortresult.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/node/sortresult.cpp b/node/sortresult.cpp
index 23e3e7f..8bb19b4 100644
--- a/node/sortresult.cpp
+++ b/node/sortresult.cpp
@@ -17,13 +17,14 @@ void SortResultNode::run(ExecutionNode* node)
return;
}
DiceResult* previousDiceResult = static_cast<DiceResult*>(node->getResult());
+ m_diceResult->setPrevious(previousDiceResult);
if(NULL!=previousDiceResult)
{
QList<Die*> diceList=previousDiceResult->getResultList();
QList<Die*> diceList2=m_diceResult->getResultList();
- // dichotomy sorting
+ // Dichotomic sorting
for(int i = 0; i<diceList.size();++i)
{
Die* tmp1 = diceList[i];