mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-09 03:24:52 +00:00
Merge b9f74d41af
into 0565403b15
This commit is contained in:
commit
5301bd9aca
1 changed files with 3 additions and 1 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue