mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 21:11:39 +00:00
- fixed seeking end of file in memory reader
https://forum.zdoom.org/viewtopic.php?t=60611
This commit is contained in:
parent
fb876852bb
commit
42668c6a5a
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@ long MemoryReader::Seek(long offset, int origin)
|
|||
break;
|
||||
|
||||
}
|
||||
if (offset < 0 || offset >= Length) return -1;
|
||||
if (offset < 0 || offset > Length) return -1;
|
||||
FilePos = clamp<long>(offset, 0, Length);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue