Skip to content

Commit

Permalink
#929 Valkyrie crash when editing scenario. MoM
Browse files Browse the repository at this point in the history
Make sure to fully extract package before copying it
  • Loading branch information
BenRQ committed Nov 4, 2018
1 parent b679ec8 commit f932472
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions unity/Assets/Scripts/QuestEditor/QuestEditSelection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,13 @@ public void Copy(string key)
}
string targetLocation = dataLocation + "/Editor" + game.gameType.QuestName().Translate() + i;

// Fully extract this scenario before copy if this is a package
if (Path.GetExtension(Path.GetFileName(key)) == ".valkyrie")
{
// extract the full package
QuestLoader.ExtractSinglePackageFull(ContentData.DownloadPath() + Path.DirectorySeparatorChar + Path.GetFileName(key));
}

// Copy files
try
{
Expand Down

0 comments on commit f932472

Please sign in to comment.