// actual Action component (and we assume it exists).
// 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.");
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
// If the action is executing, or was requested, we
// need to cancel it to make sure it stops. The Action
// need to cancel it to make sure it stops.
// system will take care of resetting its state as