diff options
Diffstat (limited to 'node')
| -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 |