mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +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()
|
||||
{
|
||||
if (mPrimary == nullptr || mPrimary->getCursor() > static_cast<int>(mSystemElements.size() - 1))
|
||||
if (mPrimary == nullptr || mPrimary->getCursor() + 1 > static_cast<int>(mSystemElements.size()))
|
||||
return;
|
||||
|
||||
for (auto& video : mSystemElements[mPrimary->getCursor()].videoComponents)
|
||||
|
|
Loading…
Reference in a new issue