From c482ba319b40aebfe6851bfe845b35e0189a93a1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 25 Feb 2020 14:03:00 +0300 Subject: Scriver: fix for a rare crash in group chats --- plugins/Scriver/src/tabs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Scriver/src/tabs.cpp b/plugins/Scriver/src/tabs.cpp index d12206e9e4..e024f1d50f 100644 --- a/plugins/Scriver/src/tabs.cpp +++ b/plugins/Scriver/src/tabs.cpp @@ -1325,7 +1325,7 @@ HWND GetParentWindow(MCONTACT hContact, bool bChat) } else { if (g_dat.lastChatParent != nullptr) { - int tabsNum = g_dat.lastParent->GetChildCount(); + int tabsNum = g_dat.lastChatParent->GetChildCount(); if (!g_dat.flags2.bLimitChatTabs || tabsNum < g_dat.limitChatsTabsNum) return g_dat.lastChatParent->m_hwnd; } -- cgit v1.2.3