Browse Source

Type for loop invariant, i/index, in squash check

Austin Hanson 3 years ago
parent
commit
047ba3909f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      getting_started/first_3d_game/06.jump_and_squash.rst

+ 1 - 1
getting_started/first_3d_game/06.jump_and_squash.rst

@@ -255,7 +255,7 @@ With this code, if no collisions occurred on a given frame, the loop won't run.
     {
         // ...
 
-        for (int index = 0; i < GetSlideCount(); index++)
+        for (int index = 0; index < GetSlideCount(); index++)
         {
             // We check every collision that occurred this frame.
             KinematicCollision collision = GetSlideCollision(index);