Corrected an issue where "extresist" crashes magic if the .ext file

it needs to read doesn't exist.
This commit is contained in:
R. Timothy Edwards 2026-02-03 20:59:28 -05:00
parent b248f186ec
commit 94edc2a23d
1 changed files with 2 additions and 1 deletions

View File

@ -114,7 +114,8 @@ ResReadExt(char *extfile)
/* Search for the .ext fie in the same way that efReadDef() does. */
fp = PaOpen(extfile, "r", ".ext", EFSearchPath, EFLibPath, (char **)NULL);
if ((fp == NULL) && (dbdef = DBCellLookDef(extfile)) != NULL)
if ((fp == NULL) && ((dbdef = DBCellLookDef(extfile)) != NULL)
&& (dbdef->cd_file != NULL))
{
char *filepath, *sptr;