Skip to content

Commit

Permalink
Aliens reinit
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanlangston committed Dec 29, 2023
1 parent b3a3882 commit 70fdf0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ViewModels/AsteroidsViewModel.zig
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ pub const AsteroidsViewModel = Shared.View.ViewModel.Create(
}

// Initialization Aliens
alienCount = 0;
inline for (0..MAX_ALIENS) |i| {
aliens[i] = Alien.init();
}
Expand Down

0 comments on commit 70fdf0d

Please sign in to comment.