Browse Source

Fix ResourcePackager

Josh Engebretson 9 years ago
parent
commit
528bad3754
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/ToolCore/Build/ResourcePackager.cpp

+ 1 - 1
Source/ToolCore/Build/ResourcePackager.cpp

@@ -133,7 +133,7 @@ bool ResourcePackager::WritePackageFile(const String& destFilePath)
             unsigned packedSize = LZ4_compressHC((const char*)&buffer[pos], (char*)compressBuffer.Get(), unpackedSize);
             if (!packedSize)
             {
-                buildBase_->FailBuild("LZ4 compression failed for file " + entry->absolutePath_ + " at offset " + pos);
+                buildBase_->FailBuild(ToString("LZ4 compression failed for file %s at offset %u", entry->absolutePath_.CString(), pos));
                 return false;
             }