summaryrefslogtreecommitdiff
path: root/src/cgame/cg_players.c
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2009-10-03 11:37:03 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:10 +0000
commitbcc79996c4c254a528e7b00f260d8ebd09e2a820 (patch)
tree12a47818547b4cd85cc2465393e0bccdf4868057 /src/cgame/cg_players.c
parent6f74ece9e3d772e8934e6e8f24defbd5238cbeed (diff)
* (bug 3554) Fix a few more places where opened files might not be closed
Diffstat (limited to 'src/cgame/cg_players.c')
-rw-r--r--src/cgame/cg_players.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cgame/cg_players.c b/src/cgame/cg_players.c
index cdfbc747..78cbe8d8 100644
--- a/src/cgame/cg_players.c
+++ b/src/cgame/cg_players.c
@@ -107,7 +107,7 @@ static qboolean CG_ParseAnimationFile( const char *filename, clientInfo_t *ci )
// load the file
len = trap_FS_FOpenFile( filename, &f, FS_READ );
- if( len <= 0 )
+ if( len < 0 )
return qfalse;
if( len >= sizeof( text ) - 1 )