Skip to content

Commit

Permalink
Merge pull request #1951 from cewert/fix-episode-list-crash
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert authored Oct 2, 2024
2 parents 43106a0 + e2080fb commit 3e6d062
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/Main.bs
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,12 @@ sub Main (args as dynamic) as void
' Find the object in the scene's data and update its json data
for i = 0 to currentScene.objects.Items.count() - 1
if LCase(currentScene.objects.Items[i].id) = LCase(currentEpisode.id)
currentScene.objects.Items[i].json = api.users.GetItem(m.global.session.user.id, currentEpisode.id)
m.global.queueManager.callFunc("setTopStartingPoint", currentScene.objects.Items[i].json.UserData.PlaybackPositionTicks)

data = api.users.GetItem(m.global.session.user.id, currentEpisode.id)
if isValid(data)
currentScene.objects.Items[i].json = data
m.global.queueManager.callFunc("setTopStartingPoint", data.UserData.PlaybackPositionTicks)
end if
exit for
end if
end for
Expand Down

0 comments on commit 3e6d062

Please sign in to comment.