diff --git a/AssetStudioGUI/AssetStudioGUIForm.cs b/AssetStudioGUI/AssetStudioGUIForm.cs index 848e9ae..8b00a11 100644 --- a/AssetStudioGUI/AssetStudioGUIForm.cs +++ b/AssetStudioGUI/AssetStudioGUIForm.cs @@ -1707,8 +1707,11 @@ namespace AssetStudioGUI FMODreset(); - scriptDumper.Dispose(); - scriptDumper = null; + if (scriptDumper != null) + { + scriptDumper.Dispose(); + scriptDumper = null; + } } private void assetListView_MouseClick(object sender, MouseEventArgs e)