Skip to content

Commit ae91cc3

Browse files
committed
Схлопнуть с Update UI
А лучше с лицом Сталкерка
1 parent e6e9336 commit ae91cc3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/xrUI/Widgets/UIWindow.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,12 @@ bool CUIWindow::OnMouseAction(float x, float y, EUIMessages mouse_action)
366366
//происходит в обратном порядке, чем рисование окон
367367
//(последние в списке имеют высший приоритет)
368368
xrCriticalSectionGuard guard(csUi);
369+
WINDOW_LIST::reverse_iterator it = m_ChildWndList.rbegin();
370+
WINDOW_LIST::reverse_iterator first = m_ChildWndList.rend();
369371

370-
for(int i = 0; i < m_ChildWndList.size(); ++i)
372+
for (u32 i = 0; it != first; ++it, i++)
371373
{
372-
CUIWindow* w = (m_ChildWndList[i]);
374+
CUIWindow* w = (*it);
373375
if (!w)
374376
{
375377
Msg("! Founded incorrect child window in [%s] childlist(%d)", *m_windowName, i);

0 commit comments

Comments
 (0)