guiVolumeChange: Fix child not being removed

master
ANAND 2019-08-08 21:11:23 +05:30 committed by sfan5
parent 37923920a0
commit cc610c74a7
1 changed files with 3 additions and 1 deletions

View File

@ -58,6 +58,9 @@ void GUIVolumeChange::removeChildren()
if (gui::IGUIElement *e = getElementFromId(ID_soundSlider))
e->remove();
if (gui::IGUIElement *e = getElementFromId(ID_soundMuteButton))
e->remove();
}
void GUIVolumeChange::regenerateGui(v2u32 screensize)
@ -193,4 +196,3 @@ bool GUIVolumeChange::OnEvent(const SEvent& event)
return Parent ? Parent->OnEvent(event) : false;
}