Fix ambiguous variable shadowing

This commit is contained in:
baldurk
2015-11-24 21:47:13 +01:00
parent 5d676d967e
commit c593986bf8
+4 -4
View File
@@ -881,12 +881,12 @@ void RenderDoc::RemoveFrameCapturer(void *dev, void *wnd)
}
else
{
auto it = m_WindowFrameCapturers.begin();
auto newactive = m_WindowFrameCapturers.begin();
// active window could be the first in our list, move
// to second (we know from above there are at least 2)
if(m_ActiveWindow == it->first)
it++;
m_ActiveWindow = it->first;
if(m_ActiveWindow == newactive->first)
newactive++;
m_ActiveWindow = newactive->first;
}
}