summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/chat/tools.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-27 13:31:25 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-27 13:31:25 +0000
commit125d5bac9e4e10a4ac585df5840199739f88df32 (patch)
treed21dcaea58c396dc2dc7ef601e7474acc5686b03 /plugins/TabSRMM/src/chat/tools.cpp
parent4439a8e4385108406c1c684debf3c8e29f9aa549 (diff)
revert #n+1 of nicklist colors in chats
git-svn-id: http://svn.miranda-ng.org/main/trunk@7915 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/chat/tools.cpp')
-rw-r--r--plugins/TabSRMM/src/chat/tools.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/chat/tools.cpp b/plugins/TabSRMM/src/chat/tools.cpp
index f57a8b9f8c..dc22d4b655 100644
--- a/plugins/TabSRMM/src/chat/tools.cpp
+++ b/plugins/TabSRMM/src/chat/tools.cpp
@@ -672,7 +672,7 @@ char GetIndicator(SESSION_INFO *si, LPCTSTR ptszNick, int *iNickIndex)
STATUSINFO *ti = pci->TM_FindStatus(si->pStatuses, pci->TM_WordToString(si->pStatuses, ui->Status));
if (ti && (int)ti->hIcon < si->iStatusCount) {
if (iNickIndex)
- *iNickIndex = si->iStatusCount - (int)ti->hIcon; // color table's index is not zero-based
+ *iNickIndex = (int)ti->hIcon; // color table's index is not zero-based
return szIndicators[(int)ti->hIcon];
}
break;