From 1b4440057a8b5b9dd0b217f68895c2c2211fffa7 Mon Sep 17 00:00:00 2001 From: Sour Date: Fri, 3 Apr 2020 19:00:49 -0400 Subject: [PATCH] Debugger: Script Window - Fixed bug that caused a saved script on the disk to be overwritten with another script --- UI/Debugger/Scripts/frmScript.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/UI/Debugger/Scripts/frmScript.cs b/UI/Debugger/Scripts/frmScript.cs index 5e41490..86b8861 100644 --- a/UI/Debugger/Scripts/frmScript.cs +++ b/UI/Debugger/Scripts/frmScript.cs @@ -221,6 +221,7 @@ namespace Mesen.GUI.Debugger this.Text = $"{name} - Script Window"; txtScriptContent.Text = ResourceExtractor.ReadZippedResource(name); _originalText = txtScriptContent.Text; + _filePath = null; _builtInScriptName = name; txtScriptContent.ClearUndo(); }