diff options
| author | 2015-05-06 10:56:50 +0200 | |
|---|---|---|
| committer | 2015-05-06 10:56:50 +0200 | |
| commit | 4ce233c2f8397c9792c3668b49e670a9dccdef95 (patch) | |
| tree | aa441e5f115f947eab02b465d5e2c89d73081364 /diceparser.cpp | |
| parent | 4c8d5865e3426092fa4c4724d22b31759aba6412 (diff) | |
| download | OneRoll-4ce233c2f8397c9792c3668b49e670a9dccdef95.tar.gz OneRoll-4ce233c2f8397c9792c3668b49e670a9dccdef95.zip | |
set the command line after the alias convertion. To prevent cheating
Diffstat (limited to 'diceparser.cpp')
| -rw-r--r-- | diceparser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/diceparser.cpp b/diceparser.cpp index 5108a10..1046ade 100644 --- a/diceparser.cpp +++ b/diceparser.cpp @@ -151,12 +151,12 @@ bool DiceParser::parseLine(QString str) delete m_start; m_start = NULL; } - m_command = str; m_start = new StartingNode(); ExecutionNode* newNode = NULL; m_current = m_start; str = convertAlias(str); + m_command = str; bool keepParsing = readExpression(str,newNode); if(keepParsing) |