Gets past the segfault at start

This commit is contained in:
twinaphex 2021-11-05 18:14:20 +01:00
parent 0dc50a1f4b
commit 6d4984681c

View File

@ -1713,7 +1713,7 @@ char* I_FindFile(const char* wfname, const char* ext)
{
sprintf(prboom_system_dir, "%s%c%s", system_dir, DIR_SLASH, "prboom");
p = FindFileInDir(prboom_system_dir, wfname, ext);
free(prboom_system_dir);
Z_Free(prboom_system_dir);
if (!p)
p = FindFileInDir(system_dir, wfname, ext);
}