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) {