aboutsummaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-17 23:58:35 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-17 23:58:35 +0200
commit5f92d1e00e12085bedc86c6274b254589053c411 (patch)
tree34be481db6b9842cbfd5b2049eaa9ae8dc19c84f /c
parent78fbe9fcba52cad4b4c36aca7c385b3a8f45824a (diff)
downloadEpisodeBrowser-5f92d1e00e12085bedc86c6274b254589053c411.tar.gz
Fix off-by-one error.
Diffstat (limited to 'c')
-rw-r--r--c/datalistview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/datalistview.cpp b/c/datalistview.cpp
index 6e598f5..3999b40 100644
--- a/c/datalistview.cpp
+++ b/c/datalistview.cpp
@@ -53,7 +53,7 @@ void DataListView::SetHeight(int h)
void DataListView::ShowEpisode(const int iEpisode)
{
- const DlvDataA& d = m_fv[iEpisode];
+ const DlvDataA& d = g_fvDlv[iEpisode-1];
ListView_DeleteAllItems(hWnd);
if (d.version == Version<DlvDataA>) {