From 510b8da8874bdafa0bd72efbd9d0521ccc4d964d Mon Sep 17 00:00:00 2001 From: Renaud G Date: Mon, 9 Apr 2018 10:24:20 +0200 Subject: -Fix #4 crash with mishaped command. And prevent this error to happen with other nodes. --- node/executionnode.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'node/executionnode.h') 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 -- cgit v1.2.3-70-g09d2