diff options
author | M. Kristall <mkpdev@gmail.com> | 2009-10-03 11:37:03 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:10 +0000 |
commit | bcc79996c4c254a528e7b00f260d8ebd09e2a820 (patch) | |
tree | 12a47818547b4cd85cc2465393e0bccdf4868057 /src/cgame/cg_weapons.c | |
parent | 6f74ece9e3d772e8934e6e8f24defbd5238cbeed (diff) |
* (bug 3554) Fix a few more places where opened files might not be closed
Diffstat (limited to 'src/cgame/cg_weapons.c')
-rw-r--r-- | src/cgame/cg_weapons.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cgame/cg_weapons.c b/src/cgame/cg_weapons.c index f6866bc2..e3776779 100644 --- a/src/cgame/cg_weapons.c +++ b/src/cgame/cg_weapons.c @@ -439,7 +439,7 @@ static qboolean CG_ParseWeaponFile( const char *filename, weaponInfo_t *wi ) // load the file len = trap_FS_FOpenFile( filename, &f, FS_READ ); - if( len <= 0 ) + if( len < 0 ) return qfalse; if( len >= sizeof( text ) - 1 ) |