This commit is contained in:
Dmitry Tsarevich 2025-04-04 17:14:42 +03:00 committed by GitHub
commit 5301bd9aca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2770,7 +2770,7 @@ void WriteLumpToFile( char *filename, int lump )
FileHandle_t lumpfile = g_pFileSystem->Open(lumppre, "wb");
if ( !lumpfile )
{
Error ("Error opening %s! (Check for write enable)\n",filename);
Error ("Error opening %s! (Check for write enable)\n", lumppre);
return;
}
@ -2788,6 +2788,8 @@ void WriteLumpToFile( char *filename, int lump )
// Write the lump
SafeWrite (lumpfile, (byte *)g_pBSPHeader + ofs, length);
g_pFileSystem->Close(lumpfile);
}
void WriteLumpToFile( char *filename, int lump, int nLumpVersion, void *pBuffer, size_t nBufLen )