diff options
author | Zack Middleton <zturtleman@gmail.com> | 2013-10-26 22:31:44 -0500 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-06-17 17:43:36 +0100 |
commit | bcb506232417318b03f96dc8a773d0c8d5b1bcba (patch) | |
tree | 5e7df2118b4afea4841e6a9d65614e491028cf96 /src/qcommon/files.c | |
parent | 877ec28e7cab95c190366ae2d3d26955bc6993d7 (diff) |
Fix VM FOpenFile( FS_READ ) files seeking twice in FS_Seek
Diffstat (limited to 'src/qcommon/files.c')
-rw-r--r-- | src/qcommon/files.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qcommon/files.c b/src/qcommon/files.c index eb7ff874..0fa49a8a 100644 --- a/src/qcommon/files.c +++ b/src/qcommon/files.c @@ -1590,9 +1590,11 @@ int FS_Seek( fileHandle_t f, long offset, int origin ) { } if (fsh[f].streamed) { + int r; fsh[f].streamed = qfalse; - FS_Seek( f, offset, origin ); + r = FS_Seek( f, offset, origin ); fsh[f].streamed = qtrue; + return r; } if (fsh[f].zipFile == qtrue) { |