From 14bf259ade4aebe13a9d663ac26e090ab256b4f3 Mon Sep 17 00:00:00 2001 From: Mateusz Kaduk Date: Sun, 15 May 2005 10:18:44 +0000 Subject: Small fixes --- src/resources/buddylist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/resources/buddylist.cpp') diff --git a/src/resources/buddylist.cpp b/src/resources/buddylist.cpp index 87e6438f..91bcf986 100644 --- a/src/resources/buddylist.cpp +++ b/src/resources/buddylist.cpp @@ -69,7 +69,7 @@ int BuddyList::getNumberOfElements(void) std::string BuddyList::getElementAt(int number) { - if(number <= buddylist.size()) + if(number <= buddylist.size() - 1) { buddyit = buddylist.begin(); std::advance(buddyit, number); -- cgit v1.2.3-70-g09d2