Fixed crash in lump filtering caused by uninitialized variables

This commit is contained in:
alexey.lysiuk 2015-04-04 12:38:37 +03:00
parent 747e160c96
commit 8b92c45f84
1 changed files with 2 additions and 0 deletions

View File

@ -450,6 +450,8 @@ bool FResourceFile::FindPrefixRange(FString filter, void *lumps, size_t lumpsize
FResourceLump *lump;
int cmp;
end = start = 0;
// Pretend that our range starts at 1 instead of 0 so that we can avoid
// unsigned overflow if the range starts at the first lump.
lumps = (BYTE *)lumps - lumpsize;