From b0166b086abd93b2540f4ae5ff18f8045cd74086 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 17 Jan 2014 22:50:24 +0000 Subject: things are even crazier then I thought... git-svn-id: http://svn.miranda-ng.org/main/trunk@7702 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/chat/window.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/TabSRMM/src/chat/window.cpp b/plugins/TabSRMM/src/chat/window.cpp index 5a5e192ef6..df7b271eb8 100644 --- a/plugins/TabSRMM/src/chat/window.cpp +++ b/plugins/TabSRMM/src/chat/window.cpp @@ -46,6 +46,7 @@ extern HMENU g_hMenu; static HKL hkl = NULL; static HCURSOR hCurHyperlinkHand; static char szIndicators[] = { '+', '%', '@', '!', 0, '*' }; +static int nickOrders[] = { 2, 1, 0, 3, 5, 4 }; struct MESSAGESUBDATA { @@ -2269,9 +2270,9 @@ INT_PTR CALLBACK RoomWndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar SetBkMode(dis->hDC, TRANSPARENT); int nickIndex = -1; - for (int i = 0; i < 6; i++) { + for (int i = 0; i < STATUSICONCOUNT; i++) { if (hIcon == pci->hIcons[ICON_STATUS1 + i]) { - nickIndex = i; + nickIndex = nickOrders[i]; break; } } -- cgit v1.2.3