From 793362909a9d3a9eb6f1490433e539495c3e8c18 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Sun, 19 Jan 2025 16:03:04 -0500 Subject: [PATCH] Bfres fix for ptcl --- File_Format_Library/FileFormats/BFRES/BFRES.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/File_Format_Library/FileFormats/BFRES/BFRES.cs b/File_Format_Library/FileFormats/BFRES/BFRES.cs index 82d69f73..1accc4b9 100644 --- a/File_Format_Library/FileFormats/BFRES/BFRES.cs +++ b/File_Format_Library/FileFormats/BFRES/BFRES.cs @@ -951,7 +951,7 @@ namespace FirstPlugin public void Save(Stream stream) { //Force mesh codec compression on save - if (this.FilePath.EndsWith(".mc")) + if (this.FilePath != null && this.FilePath.EndsWith(".mc")) { this.IFileInfo.FileCompression = new MeshCodecFormat(); this.IFileInfo.FileIsCompressed = true;