aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--diceparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/diceparser.cpp b/diceparser.cpp
index 92cd2e1..ebd163d 100644
--- a/diceparser.cpp
+++ b/diceparser.cpp
@@ -977,7 +977,7 @@ bool DiceParser::readIfInstruction(QString& str,ExecutionNode*& trueNode,Executi
{
str=str.remove(0,1);
ExecutionNode* node;
- readExpression(str,node);
+ bool hasExpresion = readExpression(str,node);
if(str.startsWith('}'))
{
trueNode = node;