Skip to content
Snippets Groups Projects
Commit 833a2f51 authored by Franck Dary's avatar Franck Dary
Browse files

Changed the way the machine change state after an invalid movement.

parent 2b0d8d6c
Branches
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ int movement_apply(config *c, int mvt_code, mvt_tagset *tagset, int root_code, T
result = movement_add_lemma_rules(c, mvt_label_str, d_form, d_lemma);
break;
}
if(machine)
if(machine && result)
c->current_state_nb = tm_delta(machine, c->current_state_nb, mvt_code);
return result;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment