[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:
Bill Currie 2020-06-24 22:47:12 +09:00
parent 7ae047654b
commit df89e37afc

View file

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