aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/rerolldicenode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/rerolldicenode.cpp')
-rw-r--r--node/rerolldicenode.cpp2
1 files changed, 1 insertions, 1 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());