Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Fix bug in importpanel in player
Browse files Browse the repository at this point in the history
  • Loading branch information
Saticmotion committed Apr 27, 2020
1 parent 33f4308 commit d089ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/UIScripts/ImportPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d089ea0

Please sign in to comment.