letmutcurr_action_state=states.get_mut(action_ent.0).expect("Couldn't find a component corresponding to the current action. This is definitely a bug.");
// So we've picked a different action than we were
// currently executing. Just like before, we grab the
// actual Action component (and we assume it exists).
letmutcurr_action_state=states.get_mut(action_ent.0).expect("Couldn't find a component corresponding to the current action. This is definitely a bug.");
// If the action is executing, or was requested, we
// need to cancel it to make sure it stops.
match*curr_action_state{
...
...
@@ -331,7 +334,6 @@ fn exec_picked_action(
// it as Requested if for some reason it had finished
// but the Action System hasn't gotten around to
// cleaning it up.
letmutcurr_action_state=states.get_mut(action_ent.0).expect("Couldn't find a component corresponding to the current action. This is definitely a bug.");