mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-09 14:10:53 +03: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