mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Change to avoid a potential issue for an if statement
This commit is contained in:
parent
a2063f4b5a
commit
7502649fc0
|
@ -52,7 +52,7 @@ void SystemView::onShow()
|
||||||
|
|
||||||
void SystemView::onHide()
|
void SystemView::onHide()
|
||||||
{
|
{
|
||||||
if (mPrimary == nullptr || mPrimary->getCursor() > static_cast<int>(mSystemElements.size() - 1))
|
if (mPrimary == nullptr || mPrimary->getCursor() + 1 > static_cast<int>(mSystemElements.size()))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (auto& video : mSystemElements[mPrimary->getCursor()].videoComponents)
|
for (auto& video : mSystemElements[mPrimary->getCursor()].videoComponents)
|
||||||
|
|
Loading…
Reference in a new issue