diff --git a/Packages/pl.krysiek.cutedancer/Editor/Utils/LegacyVersionHelper.cs b/Packages/pl.krysiek.cutedancer/Editor/Utils/LegacyVersionHelper.cs index 4cc7964..85cff18 100644 --- a/Packages/pl.krysiek.cutedancer/Editor/Utils/LegacyVersionHelper.cs +++ b/Packages/pl.krysiek.cutedancer/Editor/Utils/LegacyVersionHelper.cs @@ -11,7 +11,7 @@ public static void RunCheck() { string oldMainDirPath = AssetDatabase.GUIDToAssetPath(OLD_MAIN_DIR_GUID); - if (oldMainDirPath != "") + if (AssetDatabase.IsValidFolder(oldMainDirPath)) { bool remove = EditorUtility.DisplayDialog( "CuteDancer: legacy version detected",