From 5f92d1e00e12085bedc86c6274b254589053c411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 17 Aug 2022 23:58:35 +0200 Subject: Fix off-by-one error. --- c/datalistview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c/datalistview.cpp') 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) { -- cgit v1.2.3