Fix EN_getElseaction and EN_setelseaction

Co-Authored-By: Andreas Ashikkis <andreasashikkis@users.noreply.github.com>
This commit is contained in:
mariosmsk
2019-07-24 16:13:37 +03:00
parent a184a3a39a
commit 4e2e6c952a

View File

@@ -5373,7 +5373,7 @@ int DLLEXPORT EN_getelseaction(EN_Project p, int ruleIndex, int actionIndex,
if (ruleIndex < 1 || ruleIndex > p->network.Nrules) return 257;
actions = p->network.Rule[ruleIndex].ThenActions;
actions = p->network.Rule[ruleIndex].ElseActions;
action = getaction(actions, actionIndex);
if (action == NULL) return 258;
@@ -5401,7 +5401,7 @@ int DLLEXPORT EN_setelseaction(EN_Project p, int ruleIndex, int actionIndex,
if (ruleIndex < 1 || ruleIndex > p->network.Nrules) return 257;
actions = p->network.Rule[ruleIndex].ThenActions;
actions = p->network.Rule[ruleIndex].ElseActions;
action = getaction(actions, actionIndex);
if (action == NULL) return 258;