Skip to content

Commit ec37a96

Browse files
committed
modify: fix AGAIN to CS2MenuManager's unmanaged exception
1 parent 1143452 commit ec37a96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

MapChooserSharp/Modules/MapVote/McsMapVoteController.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ protected override void OnUnloadModule()
114114
private void OnClientDisconnect(int slot)
115115
{
116116
RemovePlayerVote(slot);
117+
118+
// TO HANDLE CS2MenuManager's UNMANAGED EXCEPTION
119+
_mapVoteContent?.GetVoteParticipants().Remove(slot);
117120
}
118121

119122

0 commit comments

Comments
 (0)