Eliminate superfluous null check in CGUIEnvironment::getNextElement

This commit is contained in:
JosiahWI 2025-01-04 05:38:38 -06:00 committed by GitHub
parent c4d624083d
commit eb512cc36a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -948,7 +948,7 @@ IGUIElement *CGUIEnvironment::getNextElement(bool reverse, bool group)
// this element is not part of the tab cycle,
// but its parent might be...
IGUIElement *el = Focus;
while (el && el->getParent() && startOrder == -1) {
while (el->getParent() && startOrder == -1) {
el = el->getParent();
startOrder = el->getTabOrder();
}