From 9a7648217518b02123101b371a554fe854642441 Mon Sep 17 00:00:00 2001 From: Lexi Date: Thu, 28 Dec 2023 09:17:00 -0500 Subject: [PATCH] Make sure to remove the right delegate --- src/SpaceWarp.UI/UI/Console/SpaceWarpConsole.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SpaceWarp.UI/UI/Console/SpaceWarpConsole.cs b/src/SpaceWarp.UI/UI/Console/SpaceWarpConsole.cs index f98fd0b..8e6743c 100644 --- a/src/SpaceWarp.UI/UI/Console/SpaceWarpConsole.cs +++ b/src/SpaceWarp.UI/UI/Console/SpaceWarpConsole.cs @@ -47,7 +47,7 @@ private void Start() private void OnDestroy() { // Unbinds the OnNewMessageReceived function to the OnNewMessage event when destroyed - OnNewLog -= CreateNewLogEntry; + OnNewLog -= AddToQueue; }