mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-20 10:43:29 +00:00
[console] Call PR_RunPostLoadFuncs
This fixes the segfault when loading the menu progs. I had forgotten that the menu code doesn't use PR_LoadProgs (I don't remember why. Obsolete reason?).
This commit is contained in:
parent
7ae047654b
commit
df89e37afc
1 changed files with 2 additions and 1 deletions
|
@ -628,7 +628,8 @@ Menu_Load (void)
|
|||
PR_LoadProgsFile (&menu_pr_state, file, size);
|
||||
Qclose (file);
|
||||
|
||||
if (!PR_RunLoadFuncs (&menu_pr_state)) {
|
||||
if (!PR_RunLoadFuncs (&menu_pr_state)
|
||||
|| !PR_RunPostLoadFuncs (&menu_pr_state)) {
|
||||
free (menu_pr_state.progs);
|
||||
menu_pr_state.progs = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue