mirror of
https://github.com/ioquake/jedi-academy.git
synced 2024-11-25 13:41:34 +00:00
Fixed some missing calls to trap_FS_FCloseFile
from Tim Angus in ioquake3 svn 95 git 33a48a0336865a9d21983e4836920cd9f3401101 Fixed some missing calls to trap_FS_FCloseFile from http://www.quakesrc.org/forums/viewtopic.php?t=5374
This commit is contained in:
parent
1a40cbbe89
commit
14f42588a8
2 changed files with 2 additions and 0 deletions
|
@ -347,6 +347,7 @@ qboolean CG_ParseSurfsFile( const char *modelName, const char *skinName, char *s
|
||||||
if ( len >= sizeof( text ) - 1 )
|
if ( len >= sizeof( text ) - 1 )
|
||||||
{
|
{
|
||||||
Com_Printf( "File %s too long\n", sfilename );
|
Com_Printf( "File %s too long\n", sfilename );
|
||||||
|
trap_FS_FCloseFile( f );
|
||||||
return qfalse;
|
return qfalse;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1000,6 +1000,7 @@ static qboolean UI_ParseAnimationFile( const char *filename, animation_t *animat
|
||||||
}
|
}
|
||||||
if ( len >= ( sizeof( text ) - 1 ) ) {
|
if ( len >= ( sizeof( text ) - 1 ) ) {
|
||||||
Com_Printf( "File %s too long\n", filename );
|
Com_Printf( "File %s too long\n", filename );
|
||||||
|
trap_FS_FCloseFile( f );
|
||||||
return qfalse;
|
return qfalse;
|
||||||
}
|
}
|
||||||
trap_FS_Read( text, len, f );
|
trap_FS_Read( text, len, f );
|
||||||
|
|
Loading…
Reference in a new issue