SCI: Don't iterate past end of list
svn-id: r44804
This commit is contained in:
parent
76996301d1
commit
2f1c7f779a
1 changed files with 5 additions and 2 deletions
|
@ -91,8 +91,11 @@ void SciGuiWindowMgr::EndUpdate(GuiWindow *wnd) {
|
|||
GuiPort *oldPort = _gfx->SetPort(_wmgrPort);
|
||||
const PortList::iterator end = _windowList.end();
|
||||
PortList::iterator it = Common::find(_windowList.begin(), end, wnd);
|
||||
while (it != end) {
|
||||
++it;
|
||||
|
||||
// wnd has to be in _windowList
|
||||
assert(it != end);
|
||||
|
||||
while (++it != end) {
|
||||
// FIXME: We also store GuiPort objects in the window list.
|
||||
// We should add a check that we really only pass windows here...
|
||||
UpdateWindow((GuiWindow *)*it);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue