Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj committed Nov 1, 2024
1 parent c852122 commit 2f0dc7e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/action.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ void Action_prepare(Trigger *self, Event *event) {
if (self->is_present) {
LF_WARN(TRIG, "Action %p is already present at this tag. Its value was overwritten", self);
} else {
sched->register_for_cleanup(sched, self);
for (size_t i = 0; i < act->effects.size; i++) {
validaten(sched->reaction_queue.insert(&sched->reaction_queue, act->effects.reactions[i]));
}
sched->register_for_cleanup(sched, self);
for (size_t i = 0; i < act->effects.size; i++) {
validaten(sched->reaction_queue.insert(&sched->reaction_queue, act->effects.reactions[i]));
}
}

self->is_present = true;
Expand Down

0 comments on commit 2f0dc7e

Please sign in to comment.