From 0345fd8fa77805e0ee34bfda804ce158e34e3bab Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 4 Jun 2022 17:44:00 +0200 Subject: [PATCH] Fixed an issue where entering folders using the gamelist carousel could lead to a crash. --- es-core/src/components/primary/CarouselComponent.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-core/src/components/primary/CarouselComponent.h b/es-core/src/components/primary/CarouselComponent.h index 14b20ed40..4d388f8fd 100644 --- a/es-core/src/components/primary/CarouselComponent.h +++ b/es-core/src/components/primary/CarouselComponent.h @@ -1057,7 +1057,7 @@ template void CarouselComponent::onCursorChanged(const CursorSta GuiComponent::setAnimation(anim, 0, nullptr, false, 0); - if (mCursorChangedCallback) + if (mCursorChangedCallback && !mEntries.empty()) mCursorChangedCallback(state); }