GRIM:/PATCHR Do not fall through on SEEK_END

This commit is contained in:
Joel Teichroeb 2013-01-22 20:18:41 -08:00
parent da9bc40359
commit 3146c8e062

View File

@ -311,6 +311,7 @@ bool PatchedFile::seek(int32 offset, int whence) {
break;
case SEEK_END:
relOffset = (size() + offset) - pos();
break;
default:
error("%s: Invalid seek instruction", _patchName.c_str());
}