mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
check return value... prevents segfault in menu code if menu.dat has issues
This commit is contained in:
parent
cad6fedad8
commit
ecf4eabe9d
1 changed files with 4 additions and 2 deletions
|
@ -346,11 +346,13 @@ PR_RunLoadFuncs (progs_t *pr)
|
|||
pr->fields.think = -1;
|
||||
pr->fields.this = -1;
|
||||
|
||||
run_load_funcs(pr, load_funcs_1);
|
||||
if (!run_load_funcs(pr, load_funcs_1))
|
||||
return 0;
|
||||
if (pr->resolve)
|
||||
if (!pr->resolve (pr))
|
||||
return 0;
|
||||
run_load_funcs(pr, load_funcs_2);
|
||||
if (!run_load_funcs(pr, load_funcs_2))
|
||||
return 0;
|
||||
|
||||
for (i = 0; i < pr->num_load_funcs; i++)
|
||||
if (!pr->load_funcs[i] (pr))
|
||||
|
|
Loading…
Reference in a new issue