mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-20 10:53:39 +00:00
This commit is contained in:
commit
eeb4cbdfbc
1 changed files with 2 additions and 2 deletions
|
@ -527,7 +527,7 @@ long MemoryReader::Seek (long offset, int origin)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
FilePos=clamp<long>(offset,0,Length-1);
|
FilePos=clamp<long>(offset,0,Length);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -583,7 +583,7 @@ long MemoryArrayReader::Seek (long offset, int origin)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
FilePos=clamp<long>(offset,0,Length-1);
|
FilePos=clamp<long>(offset,0,Length);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue