From 5cc7fc03871018f26fe929852c03fb28296aa017 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 23 Sep 2013 13:05:50 -0400 Subject: [PATCH] Fix ms list crash --- modules/commands/ms_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/commands/ms_list.cpp b/modules/commands/ms_list.cpp index c0c04f3f7..c0c69eb4f 100644 --- a/modules/commands/ms_list.cpp +++ b/modules/commands/ms_list.cpp @@ -80,7 +80,7 @@ class CommandMSList : public Command if (!number || number > mi->memos->size()) return; - const Memo *m = mi->GetMemo(number); + const Memo *m = mi->GetMemo(number - 1); ListFormatter::ListEntry entry; entry["Number"] = (m->unread ? "* " : " ") + stringify(number + 1);