From d089ea0f94a85bd7caeecc9fb144309610e75db8 Mon Sep 17 00:00:00 2001 From: Saticmotion Date: Mon, 27 Apr 2020 16:50:11 +0200 Subject: [PATCH] Fix bug in importpanel in player --- Assets/Scripts/UIScripts/ImportPanel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/UIScripts/ImportPanel.cs b/Assets/Scripts/UIScripts/ImportPanel.cs index b6cafc6d..23a9cecb 100644 --- a/Assets/Scripts/UIScripts/ImportPanel.cs +++ b/Assets/Scripts/UIScripts/ImportPanel.cs @@ -122,7 +122,7 @@ public void UnpackFile(string zipPath) var realGuid = savefileData.meta.guid; var realDestFolder = Path.Combine(persistentDataPath, realGuid.ToString()); - if (realGuid == Editor.Instance.currentProjectGuid) + if (Editor.Instance != null && realGuid == Editor.Instance.currentProjectGuid) { isCurrentProject = true; }