aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2019-07-28 02:37:12 +0200
committerRenaud G <renaud@rolisteam.org>2019-07-28 02:37:12 +0200
commita31826330e85c4c3694e85319da863b6d1784257 (patch)
tree8b574c66daecaeaf45c0c430811e594dca37b8e2 /node
parenta092fb4e6931d4af233b02fc3bd08c59681b03cb (diff)
downloadOneRoll-a31826330e85c4c3694e85319da863b6d1784257.tar.gz
OneRoll-a31826330e85c4c3694e85319da863b6d1784257.zip
prevent crash
Diffstat (limited to 'node')
-rw-r--r--node/rerolldicenode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/rerolldicenode.cpp b/node/rerolldicenode.cpp
index ee00e00..70475a5 100644
--- a/node/rerolldicenode.cpp
+++ b/node/rerolldicenode.cpp
@@ -64,8 +64,8 @@ void RerollDiceNode::run(ExecutionNode* previous)
{
toRemove.append(die);
list.append(lastResult->getResultList());
+ lastResult->clear();
}
- lastResult->clear();
}
}
else