aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/executionnode.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2018-04-09 10:24:20 +0200
committerRenaud G <renaud@rolisteam.org>2018-04-09 10:26:21 +0200
commit510b8da8874bdafa0bd72efbd9d0521ccc4d964d (patch)
treee6b4383a262796e8b67b8992ec21d15cf7a29acb /node/executionnode.h
parent5037bbc102fec39fbdef810427c31cb0a1722709 (diff)
downloadOneRoll-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.h11
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