Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
fix: Collection was modified
Browse files Browse the repository at this point in the history
  • Loading branch information
K4ryuu committed Apr 27, 2024
1 parent d49948f commit 90c242c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- 2023.04.16 - V4.1.8

- fix: Collection was modified

-- 2023.04.16 - V4.1.7

- fix: Expensive command crash exploit
Expand Down
3 changes: 2 additions & 1 deletion K4-System/src/Module/Rank/RankFunctions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public Rank GetNoneRank()

public void BeforeRoundEnd(int winnerTeam)
{
foreach (K4Player k4player in plugin.K4Players)
var temp = new List<K4Player>(plugin.K4Players);
foreach (K4Player k4player in temp)
{
if (!k4player.IsValid || !k4player.IsPlayer)
continue;
Expand Down

0 comments on commit 90c242c

Please sign in to comment.