aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node
diff options
context:
space:
mode:
Diffstat (limited to 'node')
-rw-r--r--node/scalaroperatornode.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/node/scalaroperatornode.cpp b/node/scalaroperatornode.cpp
index c1a037a..dfbfcc1 100644
--- a/node/scalaroperatornode.cpp
+++ b/node/scalaroperatornode.cpp
@@ -25,6 +25,7 @@ void ScalarOperatorNode::run(ExecutionNode* previous)
if(NULL!=previous)
{
DiceResult* previousResult = static_cast<DiceResult*>(previous->getResult());
+
if(NULL!=previousResult)
{
ExecutionNode* internal = m_internalNode;
@@ -32,7 +33,10 @@ void ScalarOperatorNode::run(ExecutionNode* previous)
{
internal = internal->getNextNode();
}
+
Result* internalResult = internal->getResult();
+ m_result->setPrevious(internalResult);
+ internalResult->setPrevious(previousResult);
switch(m_myOperator)
{