mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Menus: Fix current selection of episode menu when you return from the skill menu.
git-svn-id: https://svn.eduke32.com/eduke32@6583 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
9949a3cf5c
commit
29543fd087
1 changed files with 11 additions and 0 deletions
|
@ -3694,6 +3694,17 @@ static void Menu_MaybeSetSelectionToChild(Menu_t * m, MenuID_t id)
|
|||
{
|
||||
MenuMenu_t * menu = (MenuMenu_t *)m->object;
|
||||
|
||||
if (menu->currentEntry < menu->numEntries)
|
||||
{
|
||||
MenuEntry_t const * currentEntry = menu->entrylist[menu->currentEntry];
|
||||
if (currentEntry != NULL && currentEntry->type == Link)
|
||||
{
|
||||
MenuLink_t const * link = (MenuLink_t const *)currentEntry->entry;
|
||||
if (link->linkID == id)
|
||||
return; // already good to go
|
||||
}
|
||||
}
|
||||
|
||||
for (size_t i = 0, i_end = menu->numEntries; i < i_end; ++i)
|
||||
{
|
||||
MenuEntry_t const * entry = menu->entrylist[i];
|
||||
|
|
Loading…
Reference in a new issue