Skip to content

Commit

Permalink
unsafe cast bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
makc committed Jul 26, 2013
1 parent 4d38e07 commit 8daaa8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Binary file modified ColtPlugin.fdz
Binary file not shown.
11 changes: 7 additions & 4 deletions ColtPlugin/PluginMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ private String[] AssetFolders
{
get
{
AS3Project project = (AS3Project)PluginBase.CurrentProject;
AS3Project project = PluginBase.CurrentProject as AS3Project;

if ((project != null) && project.Storage.ContainsKey("colt.assets"))
{
Expand All @@ -429,11 +429,14 @@ private String[] AssetFolders

set
{
AS3Project project = (AS3Project)PluginBase.CurrentProject;
AS3Project project = PluginBase.CurrentProject as AS3Project;

project.Storage["colt.assets"] = String.Join("|", value);
if (project != null)
{
project.Storage["colt.assets"] = String.Join("|", value);

project.Save();
project.Save();
}
}
}

Expand Down

0 comments on commit 8daaa8e

Please # to comment.