From aa99b514c4da4fd993d8fa7849d7f4ee0f362caf Mon Sep 17 00:00:00 2001 From: Shtoyan Date: Tue, 7 Mar 2023 20:40:42 +0400 Subject: [PATCH] Update VotingHandlerAdapter.uc --- sources/VotingHandlerAdapter.uc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sources/VotingHandlerAdapter.uc b/sources/VotingHandlerAdapter.uc index d03d37e..c852f90 100644 --- a/sources/VotingHandlerAdapter.uc +++ b/sources/VotingHandlerAdapter.uc @@ -170,10 +170,12 @@ public function ReplaceHandlerMaps(XVotingHandler votingHandler, array m warn(">>> recordArray.length =" $ recordArray.length); recordArray.length = maps.length; + votingHandler.mapCount = maps.length; + nextRecord.bEnabled = true; for (i = 0; i < maps.length; i += 1) { nextRecord.mapName = maps[i]; - recordArray[recordArray.length] = nextRecord; + recordArray[i] = nextRecord; } votingHandler.mapList = recordArray;