From a8a73a21495bf54f720088cf789d8cf6cf682661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 28 Aug 2022 03:59:46 +0200 Subject: Use reference instead of copy. --- c/episodelistview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/episodelistview.cpp b/c/episodelistview.cpp index 071fbce..8581890 100644 --- a/c/episodelistview.cpp +++ b/c/episodelistview.cpp @@ -390,7 +390,7 @@ void EpisodeListView::Update() SendMessageW(hWnd, WM_SETREDRAW, FALSE, 0); ListView_DeleteAllItems(hWnd); for (int iEp = 1; iEp <= g_cfg.cEp; iEp++) { - ElvDataA e = g_fvElv.At(iEp-1); + ElvDataA& e = g_fvElv.At(iEp-1); if (!e.siEp[0]) continue; -- cgit v1.2.3