diff options
| author | 2017-10-21 22:57:04 +0200 | |
|---|---|---|
| committer | 2017-10-21 22:57:04 +0200 | |
| commit | f329a8e39beb732b5685eb01476221b461cc50d1 (patch) | |
| tree | bb4c2f2860c99d64f453345ec4b439b3bfcb756f /diceparser.cpp | |
| parent | c4687ed661a568b0a2ffa5a91e44517619369f89 (diff) | |
| download | OneRoll-f329a8e39beb732b5685eb01476221b461cc50d1.tar.gz OneRoll-f329a8e39beb732b5685eb01476221b461cc50d1.zip | |
-add group into project and use proper variable.
Diffstat (limited to 'diceparser.cpp')
| -rw-r--r-- | diceparser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/diceparser.cpp b/diceparser.cpp index 27f2a2c..42f46ac 100644 --- a/diceparser.cpp +++ b/diceparser.cpp @@ -171,17 +171,17 @@ bool DiceParser::parseLine(QString str) str = convertAlias(str); m_command = str; - bool keepParsing = readExpression(m_command,newNode); + bool keepParsing = readExpression(str,newNode); if(keepParsing) { m_current->setNextNode(newNode); m_current = getLatestNode(m_current); - keepParsing =!m_command.isEmpty(); + keepParsing =!str.isEmpty(); if(keepParsing) { // keepParsing = - readOperator(m_command,m_current); + readOperator(str,m_current); m_current = getLatestNode(m_current); } } |