Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
milanaleksic committed Jan 6, 2024
1 parent cf0b074 commit a1dc306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/day20.zig
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const Component = struct {
while (i > 0) {
i -= 1;
var effect = self.effects.items[i];
if (effect.generation <= generation) {
if (effect.generation == generation) {
try self.runEffect(effect);
_ = self.effects.orderedRemove(i);
}
Expand Down

0 comments on commit a1dc306

Please sign in to comment.