mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Eliminate superfluous null check in CGUIEnvironment::getNextElement
This commit is contained in:
parent
c4d624083d
commit
eb512cc36a
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue