diff options
author | George Hazan <george.hazan@gmail.com> | 2023-12-05 21:54:29 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-12-05 21:54:29 +0300 |
commit | afa65514b75d61b2424b53f0444c92e450b7c8e4 (patch) | |
tree | 8457454e55eb34e7c2cbea354611f2ebbb555b93 /plugins | |
parent | af8081fa25e5042a05933f706710d1c82ebbdf0e (diff) |
fixes #4014 (NewStory: crash on right-click by chat log)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index cd25eb3cca..2a35563195 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -66,7 +66,7 @@ NewstoryListData::NewstoryListData(HWND _1) : void NewstoryListData::OnContextMenu(int index, POINT pt) { - HMENU hMenu = NSMenu_Build(this, LoadItem(index)); + HMENU hMenu = NSMenu_Build(this, (index == -1) ? 0 : LoadItem(index)); if (pMsgDlg != nullptr && pMsgDlg->isChat()) Chat_CreateMenu(hMenu, pMsgDlg->getChat(), nullptr); |