From 9348521e779559dcab75e812f70882e829017f50 Mon Sep 17 00:00:00 2001 From: Agent X <44549182+Agent-11@users.noreply.github.com> Date: Sun, 10 Dec 2023 10:09:48 -0500 Subject: [PATCH] Fix ghost mod on tab menu --- src/pc/djui/djui_panel_modlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pc/djui/djui_panel_modlist.c b/src/pc/djui/djui_panel_modlist.c index b7e21230e..dbc8e1fae 100644 --- a/src/pc/djui/djui_panel_modlist.c +++ b/src/pc/djui/djui_panel_modlist.c @@ -23,7 +23,7 @@ void djui_panel_modlist_create(UNUSED struct DjuiBase* caller) { // only create if we have mods if (gActiveMods.entryCount - autoexecMod == 0) { return; } - f32 bodyHeight = (gActiveMods.entryCount * 32) + (gActiveMods.entryCount - 1 - autoexecMod) * 4; + f32 bodyHeight = ((gActiveMods.entryCount - autoexecMod) * 32) + (gActiveMods.entryCount - 1 - autoexecMod) * 4; struct DjuiThreePanel* panel = djui_panel_menu_create(DLANG(MODLIST, MODS)); djui_three_panel_set_body_size(panel, bodyHeight); gDjuiModList = panel;