From 5a134dfc687551f0df25b52a37ad2e4467cd23be Mon Sep 17 00:00:00 2001 From: Renaud Guezennec Date: Fri, 29 Jan 2016 18:20:49 +0100 Subject: add bool value to know the rest. 1d100i[<46]{+1d10} --- diceparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'diceparser.cpp') 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; -- cgit v1.2.3-70-g09d2