mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-31 13:00:59 +00:00
Merge branch 'fix_filter_crash' of https://github.com/alexey-lysiuk/gzdoom
This commit is contained in:
commit
87229f4787
1 changed files with 2 additions and 0 deletions
|
@ -450,6 +450,8 @@ bool FResourceFile::FindPrefixRange(FString filter, void *lumps, size_t lumpsize
|
||||||
FResourceLump *lump;
|
FResourceLump *lump;
|
||||||
int cmp;
|
int cmp;
|
||||||
|
|
||||||
|
end = start = 0;
|
||||||
|
|
||||||
// Pretend that our range starts at 1 instead of 0 so that we can avoid
|
// 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.
|
// unsigned overflow if the range starts at the first lump.
|
||||||
lumps = (BYTE *)lumps - lumpsize;
|
lumps = (BYTE *)lumps - lumpsize;
|
||||||
|
|
Loading…
Reference in a new issue