diff options
| -rw-r--r-- | node/sortresult.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/node/sortresult.cpp b/node/sortresult.cpp index 8dee7d5..d864aa2 100644 --- a/node/sortresult.cpp +++ b/node/sortresult.cpp @@ -41,14 +41,18 @@ void SortResultNode::run(ExecutionNode* node) DiceResult* previousDiceResult = dynamic_cast<DiceResult*>(node->getResult()); m_diceResult->setPrevious(previousDiceResult); if(NULL!=previousDiceResult) - { + { QList<Die*> diceList=previousDiceResult->getResultList(); QList<Die*> diceList2=m_diceResult->getResultList(); // half-interval search sorting for(int i = 0; i<diceList.size();++i) { - Die* tmp1 = diceList[i]; + + Die* tmp1 = new Die(); + *tmp1=*diceList[i]; + diceList[i]->displayed(); + int j =0; bool found = false; int start = 0; |