mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 18:29:11 +00:00
Type for loop invariant, i/index, in squash check
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user