2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 01:45:19 +01:00

filesystem: dir: fix merging existing cache with new directory entries

This commit is contained in:
Alibek Omarov 2022-12-21 08:02:19 +03:00
parent ac59f25375
commit 3d71e5d111

View File

@ -164,8 +164,8 @@ static void FS_MergeDirEntries( dir_t *dir, const stringlist_t *list )
}
// found directory, move all entries
temp.entries[j].numentries = dir->entries[j].numentries;
temp.entries[j].entries = dir->entries[j].entries;
temp.entries[j].numentries = dir->entries[i].numentries;
temp.entries[j].entries = dir->entries[i].entries;
}
// now we can free old tree and replace it with temporary