aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/keepdiceexecnode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/keepdiceexecnode.cpp')
-rw-r--r--node/keepdiceexecnode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/keepdiceexecnode.cpp b/node/keepdiceexecnode.cpp
index 547e343..89cda38 100644
--- a/node/keepdiceexecnode.cpp
+++ b/node/keepdiceexecnode.cpp
@@ -40,7 +40,7 @@ void KeepDiceExecNode::run(ExecutionNode* previous)
{
return;
}
- DiceResult* previousDiceResult = static_cast<DiceResult*>(previous->getResult());
+ DiceResult* previousDiceResult = dynamic_cast<DiceResult*>(previous->getResult());
m_result->setPrevious(previousDiceResult);
if(nullptr!=previousDiceResult)
{