mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-16 17:11:03 +00:00
Add a missing malloc. Without this adding a non-numbered pak would
delete all other paks, resulting in an endless loop
This commit is contained in:
parent
4ab909892f
commit
2e223c4f0a
1 changed files with 1 additions and 0 deletions
|
@ -1206,6 +1206,7 @@ FS_AddGameDirectory(const char *dir)
|
|||
if (pack == NULL)
|
||||
continue;
|
||||
|
||||
search = Z_Malloc(sizeof(fsSearchPath_t));
|
||||
search->pack = pack;
|
||||
search->next = fs_searchPaths;
|
||||
fs_searchPaths = search;
|
||||
|
|
Loading…
Reference in a new issue