summaryrefslogtreecommitdiffhomepage
path: root/digital/ai
diff options
context:
space:
mode:
Diffstat (limited to 'digital/ai')
-rw-r--r--digital/ai/src/fsm/angfsm.host.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/digital/ai/src/fsm/angfsm.host.c b/digital/ai/src/fsm/angfsm.host.c
index 8a2bd195..92fc0bce 100644
--- a/digital/ai/src/fsm/angfsm.host.c
+++ b/digital/ai/src/fsm/angfsm.host.c
@@ -881,6 +881,9 @@ angfsm_build_trans (angfsm_build_t *fsm,
malloc (sizeof (angfsm_build_branch_chain_t));
t.output_branches->name = NULL;
t.output_branches->state = angfsm_build_get_state (fsm, args[0]);
+ if (!t.output_branches->state)
+ fprintf (stderr, "Error: state \"%s\" in FSM \"%s\" is not "
+ "declared.\n", args[0], fsm->name);
assert (t.output_branches->state);
t.output_branches->next = NULL;
}