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

This commit is contained in:
Austin Hanson
2021-11-11 15:21:43 -06:00
committed by GitHub
parent 22f17d24fc
commit 047ba3909f

View File

@@ -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);