Skip to content

Commit dab6f38

Browse files
authored
Merge pull request kisence-mian#56 from EricDDK/fix_for_loop_rm_bug
修复for循环中删除定时器导致的for循环不完全
2 parents 9d3e6dc + bf1e744 commit dab6f38

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Assets/Script/Core/Timer/Timer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ static void Update ()
2929
if (e.m_isDone)
3030
{
3131
m_timers.Remove(e);
32+
i--;
3233
}
3334
}
3435
}

0 commit comments

Comments
 (0)