Menu-FN: ensure g_iModInstallCache is set to -1 upon init to avoid Custom Game from being glitchy from a fresh install.

This commit is contained in:
Marco Cawthorne 2023-02-08 15:55:13 -08:00
parent f0d77627ea
commit 855daac7e7
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 2 additions and 1 deletions

View File

@ -919,6 +919,7 @@ menu_customgame_init(void)
customgame_sbMods.SetCallback(customgame_sbmods_changed);
customgame_sbMods.SetMax(gameinfo_count);
Widget_Add(fn_customgame, customgame_sbMods);
g_iModInstallCache = -1;
#endif
}
@ -971,7 +972,7 @@ menu_customgame_draw(void)
#if 1
if (g_iModInstallCache >= 0) {
if (g_iModInstallCache >= 0i) {
customgame_installframe();
}
#endif