瀏覽代碼

Merge pull request #5388 from berdon/patch-1

Typo for loop invariant, i/index, in squash check
Max Hilbrunner 3 年之前
父節點
當前提交
d6d97aaf5e
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);