aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2021-02-07 02:01:12 +0100
committerRenaud G <renaud@rolisteam.org>2021-02-07 02:45:12 +0100
commit0bba02370a82719e47ba0566c3c56ea0b770c96c (patch)
tree4dbf3df05319e1786299055ca11393248963ab13 /node
parent4f528537ad07f93aca5952949f4960e5e88e2072 (diff)
downloadOneRoll-0bba02370a82719e47ba0566c3c56ea0b770c96c.tar.gz
OneRoll-0bba02370a82719e47ba0566c3c56ea0b770c96c.zip
Remove getLatestNode to getLeafNode
Diffstat (limited to 'node')
-rw-r--r--node/rerolldicenode.cpp2
-rw-r--r--node/variablenode.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/node/rerolldicenode.cpp b/node/rerolldicenode.cpp
index 370e95e..e7bf0f0 100644
--- a/node/rerolldicenode.cpp
+++ b/node/rerolldicenode.cpp
@@ -56,7 +56,7 @@ void RerollDiceNode::run(ExecutionNode* previous)
if(m_instruction != nullptr)
{
m_instruction->run(this);
- auto lastNode= ParsingToolBox::getLatestNode(m_instruction);
+ auto lastNode= ParsingToolBox::getLeafNode(m_instruction);
if(lastNode != nullptr)
{
auto lastResult= dynamic_cast<DiceResult*>(lastNode->getResult());
diff --git a/node/variablenode.cpp b/node/variablenode.cpp
index e286a95..f48c254 100644
--- a/node/variablenode.cpp
+++ b/node/variablenode.cpp
@@ -8,7 +8,7 @@ void VariableNode::run(ExecutionNode* previous)
if((nullptr != m_data) && (m_data->size() > m_index))
{
auto value= (*m_data)[m_index];
- value= ParsingToolBox::getLatestNode(value);
+ value= ParsingToolBox::getLeafNode(value);
if(nullptr != value)
{
auto result= value->getResult();