diff options
| author | 2018-04-09 10:24:20 +0200 | |
|---|---|---|
| committer | 2018-04-09 10:26:21 +0200 | |
| commit | 510b8da8874bdafa0bd72efbd9d0521ccc4d964d (patch) | |
| tree | e6b4383a262796e8b67b8992ec21d15cf7a29acb /node/scalaroperatornode.cpp | |
| parent | 5037bbc102fec39fbdef810427c31cb0a1722709 (diff) | |
| download | OneRoll-510b8da8874bdafa0bd72efbd9d0521ccc4d964d.tar.gz OneRoll-510b8da8874bdafa0bd72efbd9d0521ccc4d964d.zip | |
-Fix #4 crash with mishaped command.
And prevent this error to happen with other nodes.
Diffstat (limited to 'node/scalaroperatornode.cpp')
| -rw-r--r-- | node/scalaroperatornode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<DiceResult*>(previous->getResult()); + DiceResult* previousResult = dynamic_cast<DiceResult*>(previous->getResult()); if(nullptr!=previousResult) { |