Skip to content

Commit

Permalink
[SDK] Fixed a crash that would sometimes happen in AssetManager.Reset (
Browse files Browse the repository at this point in the history
  • Loading branch information
BreakfastBrainz2 authored May 9, 2023
1 parent d16f9db commit 71a8eba
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions FrostySdk/Managers/AssetManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -881,10 +881,11 @@ public void Reset()
RevertAsset(entry, suppressOnModify: false);
}

foreach(BundleEntry bundle in bundles.Where(b => b.Added))
{
bundles.Remove(bundle);
}
//foreach(BundleEntry bundle in bundles.Where(b => b.Added).ToList())
//{
// bundles.Remove(bundle);
//}
bundles.RemoveAll(b => b.Added);
}

public void RevertAsset(AssetEntry entry, bool dataOnly = false, bool suppressOnModify = true)
Expand Down

0 comments on commit 71a8eba

Please sign in to comment.