diff options
| author | 2019-02-13 00:04:13 +0100 | |
|---|---|---|
| committer | 2019-02-13 00:04:13 +0100 | |
| commit | ccf94c2af4a2c5e30e62628e7cc412949d9af12a (patch) | |
| tree | 6b658ff22fd8c7fc9c0797cf272b36fd2dcce9db | |
| parent | f2051fb35b1ad49c4d940e6fbba2acc98b216e13 (diff) | |
| download | OneRoll-ccf94c2af4a2c5e30e62628e7cc412949d9af12a.tar.gz OneRoll-ccf94c2af4a2c5e30e62628e7cc412949d9af12a.zip | |
Fix issue on priority
| -rw-r--r-- | node/keepdiceexecnode.cpp | 5 | ||||
| -rw-r--r-- | node/sortresult.cpp | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/node/keepdiceexecnode.cpp b/node/keepdiceexecnode.cpp index c1fe44b..bad2370 100644 --- a/node/keepdiceexecnode.cpp +++ b/node/keepdiceexecnode.cpp @@ -93,11 +93,10 @@ QString KeepDiceExecNode::toString(bool wl) const qint64 KeepDiceExecNode::getPriority() const { qint64 priority= 0; - if(nullptr != m_nextNode) + if(nullptr != m_previousNode) { - priority= m_nextNode->getPriority(); + priority= m_previousNode->getPriority(); } - return priority; } diff --git a/node/sortresult.cpp b/node/sortresult.cpp index 76fae2b..89043fa 100644 --- a/node/sortresult.cpp +++ b/node/sortresult.cpp @@ -135,11 +135,10 @@ QString SortResultNode::toString(bool wl) const qint64 SortResultNode::getPriority() const { qint64 priority= 0; - if(nullptr != m_nextNode) + if(nullptr != m_previousNode) { - priority= m_nextNode->getPriority(); + priority= m_previousNode->getPriority(); } - return priority; } ExecutionNode* SortResultNode::getCopy() const |