From fcd635df4e54ec9907721808addd4b7eb91184cb Mon Sep 17 00:00:00 2001 From: _nebula <41904486+misternebula@users.noreply.github.com> Date: Mon, 8 May 2023 00:26:05 +0100 Subject: [PATCH] make it array lmao --- QSB/HUD/MultiplayerHUDManager.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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())