Fix loading .rpx when a fileoffset/filesize is provided

This commit is contained in:
Maschell 2020-12-11 15:19:14 +01:00
parent 48c093162b
commit 78a6c4288a

View File

@ -139,7 +139,7 @@ static int MCP_LoadCustomFile(int target, char *path, int filesize, int fileoffs
DEBUG_FUNCTION_LINE("Load custom path \"%s\"\n", filepath);
if (filesize > 0 && (pos + fileoffset > filesize)) {
if (filesize > 0 && (pos > filesize)) {
return 0;
}