- action_set = action->generic_action.state_set;
- xbt_swag_remove(action, action_set);
- xbt_swag_insert(action, action_set);
+ xbt_swag_remove(action, ((surf_action_t)action)->state_set);
+ ((surf_action_t)action)->state_set =running_action_set_that_does_not_need_being_checked;
+ xbt_swag_insert(action, ((surf_action_t)action)->state_set);