Fixed an issue where entering folders using the gamelist carousel could lead to a crash.

This commit is contained in:
Leon Styhre 2022-06-04 17:44:00 +02:00
parent d508a123d2
commit 0345fd8fa7

View file

@ -1057,7 +1057,7 @@ template <typename T> void CarouselComponent<T>::onCursorChanged(const CursorSta
GuiComponent::setAnimation(anim, 0, nullptr, false, 0); GuiComponent::setAnimation(anim, 0, nullptr, false, 0);
if (mCursorChangedCallback) if (mCursorChangedCallback && !mEntries.empty())
mCursorChangedCallback(state); mCursorChangedCallback(state);
} }