From 875bc3c41e147a5485d71346ed4282ca729d38d7 Mon Sep 17 00:00:00 2001 From: kalimag Date: Wed, 20 Nov 2024 15:30:42 +0100 Subject: [PATCH] Use reference equality to test for console output --- src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs b/src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs index 4dcca5abab..7628693f08 100644 --- a/src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs +++ b/src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs @@ -1392,7 +1392,7 @@ namespace BizHawk.Client.EmuHawk // empty array if the command was e.g. a variable assignment or a loop without return statement // "void" functions return a single null // if output didn't change, Print will take care of writing out "(no return)" - if (results is not ([ ] or [ null ]) || OutputBox.Text == consoleBeforeCall) + if (results is not ([ ] or [ null ]) || ReferenceEquals(OutputBox.Text, consoleBeforeCall)) { LuaLibraries.Print(results); }