From ee36c0e9d8b31c993f96995ae52ef14493b928f7 Mon Sep 17 00:00:00 2001 From: u-Kotovsky <67106105+u-Kotovsky@users.noreply.github.com> Date: Mon, 12 Jan 2026 20:45:48 +0300 Subject: [PATCH] Fix ToggleChannel size in EnsureCapacity --- Assets/Plugin/Generators/GeneratorRemapOnDemand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Plugin/Generators/GeneratorRemapOnDemand.cs b/Assets/Plugin/Generators/GeneratorRemapOnDemand.cs index 27d6d80..8e01681 100644 --- a/Assets/Plugin/Generators/GeneratorRemapOnDemand.cs +++ b/Assets/Plugin/Generators/GeneratorRemapOnDemand.cs @@ -17,7 +17,7 @@ public void GenerateDMX(ref List dmxData) //ensure capacity dmxData.EnsureCapacity(RemapToChannelStart + (int)RemapChannelLength); dmxData.EnsureCapacity(RemapFromChannelStart + (int)RemapChannelLength); - dmxData.EnsureCapacity(ToggleChannel); + dmxData.EnsureCapacity(ToggleChannel + 1); if (dmxData[ToggleChannel] > ActivationThreshold) {