mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-17 01:31:25 +00:00
- on second thought, better call M_ClearMenus instead of calling Destroy directly.
This commit is contained in:
parent
4c622ba066
commit
583cd489b1
1 changed files with 1 additions and 2 deletions
|
@ -136,7 +136,7 @@ DEFINE_ACTION_FUNCTION(FOptionValues, GetText)
|
||||||
|
|
||||||
void DeinitMenus()
|
void DeinitMenus()
|
||||||
{
|
{
|
||||||
if (CurrentMenu) CurrentMenu->Destroy();
|
M_ClearMenus();
|
||||||
{
|
{
|
||||||
FOptionMap::Iterator it(OptionValues);
|
FOptionMap::Iterator it(OptionValues);
|
||||||
|
|
||||||
|
@ -150,7 +150,6 @@ void DeinitMenus()
|
||||||
}
|
}
|
||||||
MenuDescriptors.Clear();
|
MenuDescriptors.Clear();
|
||||||
OptionValues.Clear();
|
OptionValues.Clear();
|
||||||
CurrentMenu = nullptr;
|
|
||||||
savegameManager.ClearSaveGames();
|
savegameManager.ClearSaveGames();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue