mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 07:57:51 +00:00
- fixed crash when loading empty resource directory
https://forum.zdoom.org/viewtopic.php?t=69004
This commit is contained in:
parent
a713a895a7
commit
f2ddbeeb81
1 changed files with 5 additions and 0 deletions
|
@ -920,6 +920,11 @@ static FResourceLump placeholderLump;
|
||||||
|
|
||||||
void FileSystem::MoveLumpsInFolder(const char *path)
|
void FileSystem::MoveLumpsInFolder(const char *path)
|
||||||
{
|
{
|
||||||
|
if (FileInfo.Size() == 0)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
auto len = strlen(path);
|
auto len = strlen(path);
|
||||||
auto rfnum = FileInfo.Last().rfnum;
|
auto rfnum = FileInfo.Last().rfnum;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue