diff --git a/.vs/Switch_Toolbox/v15/.suo b/.vs/Switch_Toolbox/v15/.suo index 9d00c3ef..cf1c03cd 100644 Binary files a/.vs/Switch_Toolbox/v15/.suo and b/.vs/Switch_Toolbox/v15/.suo differ diff --git a/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide b/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide index bc68efda..55c92bea 100644 Binary files a/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide and b/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide differ diff --git a/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-wal b/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-wal index f015e0dd..a08b1750 100644 Binary files a/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-wal and b/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-wal differ diff --git a/Switch_FileFormatsMain/FileFormats/Texture/BNTX.cs b/Switch_FileFormatsMain/FileFormats/Texture/BNTX.cs index 84b034a2..0c7ac0c9 100644 --- a/Switch_FileFormatsMain/FileFormats/Texture/BNTX.cs +++ b/Switch_FileFormatsMain/FileFormats/Texture/BNTX.cs @@ -348,22 +348,19 @@ namespace FirstPlugin { if (ContainerArray.Count > 1) { - foreach (var container in ContainerArray) + for (int i = 0; i < ContainerArray.Count; i++) { - foreach (var tex in container.Textures.Values) + foreach (var tex in ContainerArray[i].Textures.Values) { tex.Texture.TextureData.Clear(); tex.Texture = null; tex.DisposeRenderable(); } - container.Textures.Clear(); - container.Nodes.Clear(); + ContainerArray[i].Textures.Clear(); - container.BinaryTexFile = null; - - if (PluginRuntime.bntxContainers.Contains(container)) - PluginRuntime.bntxContainers.Remove(container); + if (PluginRuntime.bntxContainers.Contains(ContainerArray[i])) + PluginRuntime.bntxContainers.Remove(ContainerArray[i]); } GC.SuppressFinalize(this);