diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-17 23:58:35 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-17 23:58:35 +0200 |
commit | 5f92d1e00e12085bedc86c6274b254589053c411 (patch) | |
tree | 34be481db6b9842cbfd5b2049eaa9ae8dc19c84f /c | |
parent | 78fbe9fcba52cad4b4c36aca7c385b3a8f45824a (diff) | |
download | EpisodeBrowser-5f92d1e00e12085bedc86c6274b254589053c411.tar.gz |
Fix off-by-one error.
Diffstat (limited to 'c')
-rw-r--r-- | c/datalistview.cpp | 2 |
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>) { |