summaryrefslogtreecommitdiff
path: root/plugins/NewStory
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewStory')
-rw-r--r--plugins/NewStory/src/history_control.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp
index 06da9d4552..a1d3399c0f 100644
--- a/plugins/NewStory/src/history_control.cpp
+++ b/plugins/NewStory/src/history_control.cpp
@@ -215,7 +215,8 @@ void NewstoryListData::ClearSelection(int iFirst, int iLast)
std::swap(start, end);
for (int i = start; i <= end; ++i)
- GetItem(i)->m_bSelected = false;
+ if (auto *pItem = GetItem(i))
+ pItem->m_bSelected = false;
InvalidateRect(m_hwnd, 0, FALSE);
}