aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.cpp
diff options
context:
space:
mode:
authorobiwankennedy <renaud@rolisteam.org>2018-03-12 12:02:58 +0100
committerobiwankennedy <renaud@rolisteam.org>2018-03-12 12:02:58 +0100
commit618535737008d076ae687602381bb4e9a542fd91 (patch)
treecb91cbadd67520c338b3b1c4f90c700df367c4ca /diceparser.cpp
parent94f98fb14403d0442fce8fd427bb470e4d17e7b3 (diff)
downloadOneRoll-618535737008d076ae687602381bb4e9a542fd91.tar.gz
OneRoll-618535737008d076ae687602381bb4e9a542fd91.zip
fix stuff on diceparser
Diffstat (limited to 'diceparser.cpp')
-rw-r--r--diceparser.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/diceparser.cpp b/diceparser.cpp
index 311b3a4..d73404d 100644
--- a/diceparser.cpp
+++ b/diceparser.cpp
@@ -549,7 +549,10 @@ void DiceParser::getLastDiceResult(QList<ExportedDiceResult>& diceValuesList,boo
}
result = result->getPrevious();
}
- diceValuesList.append(diceValues);
+ if(!diceValues.isEmpty())
+ {
+ diceValuesList.append(diceValues);
+ }
}
}
QString DiceParser::getDiceCommand() const