From 0bba02370a82719e47ba0566c3c56ea0b770c96c Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sun, 7 Feb 2021 02:01:12 +0100 Subject: Remove getLatestNode to getLeafNode --- node/rerolldicenode.cpp | 2 +- node/variablenode.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'node') 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(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(); -- cgit v1.2.3-70-g09d2