aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2019-02-13 00:04:13 +0100
committerRenaud G <renaud@rolisteam.org>2019-02-13 00:04:13 +0100
commitccf94c2af4a2c5e30e62628e7cc412949d9af12a (patch)
tree6b658ff22fd8c7fc9c0797cf272b36fd2dcce9db
parentf2051fb35b1ad49c4d940e6fbba2acc98b216e13 (diff)
downloadOneRoll-ccf94c2af4a2c5e30e62628e7cc412949d9af12a.tar.gz
OneRoll-ccf94c2af4a2c5e30e62628e7cc412949d9af12a.zip
Fix issue on priority
-rw-r--r--node/keepdiceexecnode.cpp5
-rw-r--r--node/sortresult.cpp5
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