From 510b8da8874bdafa0bd72efbd9d0521ccc4d964d Mon Sep 17 00:00:00 2001 From: Renaud G Date: Mon, 9 Apr 2018 10:24:20 +0200 Subject: -Fix #4 crash with mishaped command. And prevent this error to happen with other nodes. --- node/scalaroperatornode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node/scalaroperatornode.cpp') diff --git a/node/scalaroperatornode.cpp b/node/scalaroperatornode.cpp index a9a19e3..17ddecb 100644 --- a/node/scalaroperatornode.cpp +++ b/node/scalaroperatornode.cpp @@ -54,7 +54,7 @@ void ScalarOperatorNode::run(ExecutionNode* previous) } if(nullptr!=previous) { - DiceResult* previousResult = static_cast(previous->getResult()); + DiceResult* previousResult = dynamic_cast(previous->getResult()); if(nullptr!=previousResult) { -- cgit v1.2.3-70-g09d2