Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanlangston committed Jan 4, 2024
1 parent c6751ad commit 7d728be
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ViewModels/AsteroidsViewModel.zig
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ pub const AsteroidsViewModel = Shared.View.ViewModel.Create(
// Swap the inactive meteor with the last active one
const temp = bigMeteors[i];
bigMeteors[i] = bigMeteors[bigMeteorsCount];
bigMeteors[bigMeteorsCount] = bigMeteors[i];
bigMeteors[bigMeteorsCount] = temp;

NewAlien();
},
Expand Down Expand Up @@ -276,7 +276,7 @@ pub const AsteroidsViewModel = Shared.View.ViewModel.Create(
// Swap the inactive meteor with the last active one
const temp = bigMeteors[i];
bigMeteors[i] = bigMeteors[bigMeteorsCount];
bigMeteors[bigMeteorsCount] = bigMeteors[i];
bigMeteors[bigMeteorsCount] = temp;

mediumMeteors[@intCast(midMeteorsCount)].active = true;
midMeteorsCount += 1;
Expand Down Expand Up @@ -318,7 +318,7 @@ pub const AsteroidsViewModel = Shared.View.ViewModel.Create(
// Swap the inactive meteor with the last active one
const temp = mediumMeteors[i];
mediumMeteors[i] = mediumMeteors[midMeteorsCount];
mediumMeteors[midMeteorsCount] = mediumMeteors[i];
mediumMeteors[midMeteorsCount] = temp;

smallMeteors[@intCast(smallMeteorsCount)].active = true;
smallMeteorsCount += 1;
Expand Down Expand Up @@ -367,7 +367,7 @@ pub const AsteroidsViewModel = Shared.View.ViewModel.Create(
// Swap the inactive meteor with the last active one
const temp = mediumMeteors[i];
mediumMeteors[i] = mediumMeteors[midMeteorsCount];
mediumMeteors[midMeteorsCount] = mediumMeteors[i];
mediumMeteors[midMeteorsCount] = temp;

NewAlien();

Expand Down Expand Up @@ -398,7 +398,7 @@ pub const AsteroidsViewModel = Shared.View.ViewModel.Create(
// Swap the inactive meteor with the last active one
const temp = smallMeteors[i];
smallMeteors[i] = smallMeteors[smallMeteorsCount];
smallMeteors[smallMeteorsCount] = smallMeteors[i];
smallMeteors[smallMeteorsCount] = temp;

NewAlien();
},
Expand Down Expand Up @@ -433,7 +433,7 @@ pub const AsteroidsViewModel = Shared.View.ViewModel.Create(
// Swap the inactive meteor with the last active one
const temp = smallMeteors[i];
smallMeteors[i] = smallMeteors[smallMeteorsCount];
smallMeteors[smallMeteorsCount] = smallMeteors[i];
smallMeteors[smallMeteorsCount] = temp;

NewAlien();

Expand Down

0 comments on commit 7d728be

Please sign in to comment.