diff --git a/QSB/HUD/MultiplayerHUDManager.cs b/QSB/HUD/MultiplayerHUDManager.cs index 53f5fd34..867a06de 100644 --- a/QSB/HUD/MultiplayerHUDManager.cs +++ b/QSB/HUD/MultiplayerHUDManager.cs @@ -69,7 +69,7 @@ internal class MultiplayerHUDManager : MonoBehaviour, IAddComponentOnStart private const int CHAR_COUNT = 41; private bool _writingMessage; - private List _lines = new List(new string[LINE_COUNT]); + private string[] _lines = new string[LINE_COUNT]; private ListStack _messages = new(LINE_COUNT); public void WriteMessage(string message) @@ -91,8 +91,6 @@ internal class MultiplayerHUDManager : MonoBehaviour, IAddComponentOnStart _messages.RemoveFirstElementAndShift(); } - _lines = new List(new string[LINE_COUNT]); - var currentLineIndex = 10; foreach (var item in _messages.Reverse())