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:
Yamagi Burmeister 2011-10-11 18:42:36 +00:00
parent 4ab909892f
commit 2e223c4f0a

View file

@ -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;