diff --git a/MLEM/Content/RawContentManager.cs b/MLEM/Content/RawContentManager.cs index 820779c..c661de9 100644 --- a/MLEM/Content/RawContentManager.cs +++ b/MLEM/Content/RawContentManager.cs @@ -54,7 +54,7 @@ namespace MLEM.Content { if (!(read is T t)) throw new ContentLoadException($"{reader} returned non-{typeof(T)} for asset {assetName}"); this.LoadedAssets[assetName] = t; - if (t is IDisposable d) + if (t is IDisposable d && !this.disposableAssets.Contains(d)) this.disposableAssets.Add(d); return t; }