From 33eadf8739d61bf32432c2873d6dc28641c944bd Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 3 Jan 2006 21:29:47 +0000 Subject: [PATCH] Fixes my logic. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1782 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/common/fs.c b/engine/common/fs.c index d5261589c..91a819e11 100644 --- a/engine/common/fs.c +++ b/engine/common/fs.c @@ -516,7 +516,7 @@ int VFSPAK_ReadBytes (struct vfsfile_s *vfs, void *buffer, int bytestoread) int read; if (vfsp->currentpos - vfsp->startpos + bytestoread > vfsp->length) - bytestoread = vfsp->length - (vfsp->currentpos - vfsp->startpos + bytestoread); + bytestoread = vfsp->length - (vfsp->currentpos - vfsp->startpos); if (bytestoread <= 0) return -1;