mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Eliminate superfluous null check in CGUIEnvironment::getNextElement
This commit is contained in:
@@ -948,7 +948,7 @@ IGUIElement *CGUIEnvironment::getNextElement(bool reverse, bool group)
|
|||||||
// this element is not part of the tab cycle,
|
// this element is not part of the tab cycle,
|
||||||
// but its parent might be...
|
// but its parent might be...
|
||||||
IGUIElement *el = Focus;
|
IGUIElement *el = Focus;
|
||||||
while (el && el->getParent() && startOrder == -1) {
|
while (el->getParent() && startOrder == -1) {
|
||||||
el = el->getParent();
|
el = el->getParent();
|
||||||
startOrder = el->getTabOrder();
|
startOrder = el->getTabOrder();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user