Quellcode durchsuchen

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

Austin Hanson vor 3 Jahren
Ursprung
Commit
047ba3909f
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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);