mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-19 19:25:18 +02:00
@@ -52,13 +52,12 @@ void GUIPasswordChange::removeChildren()
|
||||
{
|
||||
const core::list<gui::IGUIElement *> &children = getChildren();
|
||||
core::list<gui::IGUIElement *> children_copy;
|
||||
for (core::list<gui::IGUIElement *>::ConstIterator i = children.begin();
|
||||
i != children.end(); i++) {
|
||||
children_copy.push_back(*i);
|
||||
for (gui::IGUIElement *i : children) {
|
||||
children_copy.push_back(i);
|
||||
}
|
||||
for (core::list<gui::IGUIElement *>::Iterator i = children_copy.begin();
|
||||
i != children_copy.end(); i++) {
|
||||
(*i)->remove();
|
||||
|
||||
for (gui::IGUIElement *i : children_copy) {
|
||||
i->remove();
|
||||
}
|
||||
}
|
||||
void GUIPasswordChange::regenerateGui(v2u32 screensize)
|
||||
|
Reference in New Issue
Block a user