|
Array.Resize(ref _currentlyControls, _currentlyControls.Length * 2); |
if the "_controlCount" exceeds the "_currentlyControls.Length * 2" amount the system will crash.
to prevent we should resize the array based on the maximum of "_currentlyControls.Length * 2" and "_controlCount".
framework/src/Exomia.Framework/UI/UiManager.cs
Line 161 in 68f0e50
if the "_controlCount" exceeds the "_currentlyControls.Length * 2" amount the system will crash.
to prevent we should resize the array based on the maximum of "_currentlyControls.Length * 2" and "_controlCount".