This commit is contained in:
Adam Millerchip 2021-12-30 23:53:40 +09:00
parent 8cb9f97971
commit b72e49c686
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ pub fn main() void {
for (aliens) |*alien| {
// *** Zap the Alien Here! ***
???.zap(heat_ray_strength);
alien.zap(heat_ray_strength);
// If the alien's health is still above 0, it's still alive.
if (alien.health > 0) aliens_alive += 1;