From 71da2233d945cb5d59eb0fcd300a7a0fd3d03e21 Mon Sep 17 00:00:00 2001 From: Davide <49226282+pizidavi@users.noreply.github.com> Date: Tue, 29 Mar 2022 14:14:26 +0200 Subject: [PATCH] Fixed CastHelper (#879) --- .../main/java/com/lagradost/cloudstream3/utils/CastHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/utils/CastHelper.kt b/app/src/main/java/com/lagradost/cloudstream3/utils/CastHelper.kt index 36f77a2b..e48c51e3 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/utils/CastHelper.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/utils/CastHelper.kt @@ -92,7 +92,7 @@ object CastHelper { ): Boolean { if (this == null) return false if (episodes.isEmpty()) return false - if (currentLinks.size <= currentEpisodeIndex) return false + if (currentEpisodeIndex >= episodes.size) return false val epData = episodes[currentEpisodeIndex]