mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-16 23:11:25 +00:00
Fixed crash when executing extract_resources.cfg on Linux
This commit is contained in:
parent
ed85005809
commit
ad41a268b0
2 changed files with 9 additions and 0 deletions
|
@ -339,6 +339,8 @@ If you switch to one of those with the additional autogenerated model entities t
|
|||
|
||||
* Support Borderless Fullscreen and Borderless Window modes for Win32 and SDL platforms
|
||||
|
||||
* Fixed crash when executing extract_resources.cfg on Linux
|
||||
|
||||
[TRENCHBROOMBFG]
|
||||
|
||||
* Renamed custom TrenchBroom fork to TrenchBroomBFG
|
||||
|
|
|
@ -1406,6 +1406,13 @@ int idFile_Permanent::Write( const void* buffer, int len )
|
|||
return 0;
|
||||
}
|
||||
|
||||
// Chillax
|
||||
if( buf == NULL )
|
||||
{
|
||||
common->Printf( "idFile_Permanent::Write: buffer is null, 0 bytes written to %s\n", name.c_str() );
|
||||
return 0;
|
||||
}
|
||||
|
||||
buf = ( byte* )buffer;
|
||||
|
||||
remaining = len;
|
||||
|
|
Loading…
Reference in a new issue