Forráskód Böngészése

Merge pull request #5388 from berdon/patch-1

Typo for loop invariant, i/index, in squash check
Max Hilbrunner 3 éve
szülő
commit
d6d97aaf5e
1 módosított fájl, 1 hozzáadás és 1 törlés
  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);