diff options
| author | 2018-04-09 10:24:20 +0200 | |
|---|---|---|
| committer | 2018-04-09 10:26:21 +0200 | |
| commit | 510b8da8874bdafa0bd72efbd9d0521ccc4d964d (patch) | |
| tree | e6b4383a262796e8b67b8992ec21d15cf7a29acb /node/executionnode.h | |
| parent | 5037bbc102fec39fbdef810427c31cb0a1722709 (diff) | |
| download | OneRoll-510b8da8874bdafa0bd72efbd9d0521ccc4d964d.tar.gz OneRoll-510b8da8874bdafa0bd72efbd9d0521ccc4d964d.zip | |
-Fix #4 crash with mishaped command.
And prevent this error to happen with other nodes.
Diffstat (limited to 'node/executionnode.h')
| -rw-r--r-- | node/executionnode.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/node/executionnode.h b/node/executionnode.h index a84bef0..796831d 100644 --- a/node/executionnode.h +++ b/node/executionnode.h @@ -10,9 +10,14 @@ class ExecutionNode { public: - enum DICE_ERROR_CODE {NO_DICE_ERROR,DIE_RESULT_EXPECTED,BAD_SYNTAXE, - ENDLESS_LOOP_ERROR,DIVIDE_BY_ZERO,NOTHING_UNDERSTOOD, - NO_DICE_TO_ROLL,TOO_MANY_DICE,NO_VARIBALE, + enum DICE_ERROR_CODE {NO_DICE_ERROR, + DIE_RESULT_EXPECTED, + BAD_SYNTAXE, + ENDLESS_LOOP_ERROR, + DIVIDE_BY_ZERO, + NOTHING_UNDERSTOOD, + NO_DICE_TO_ROLL, + TOO_MANY_DICE,NO_VARIBALE, INVALID_INDEX}; /** * @brief ExecutionNode |