summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorMateusz Kaduk <mateusz.kaduk@gmail.com>2005-05-15 10:18:44 +0000
committerMateusz Kaduk <mateusz.kaduk@gmail.com>2005-05-15 10:18:44 +0000
commit14bf259ade4aebe13a9d663ac26e090ab256b4f3 (patch)
tree4d54496a1d16082315fdae405c7678a78068e4b3 /src/resources
parent13deabf8b93a2a6307978d9f49ad8fde5dbefdfd (diff)
downloadmana-14bf259ade4aebe13a9d663ac26e090ab256b4f3.tar.gz
mana-14bf259ade4aebe13a9d663ac26e090ab256b4f3.tar.bz2
mana-14bf259ade4aebe13a9d663ac26e090ab256b4f3.tar.xz
mana-14bf259ade4aebe13a9d663ac26e090ab256b4f3.zip
Small fixes
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/buddylist.cpp2
1 files changed, 1 insertions, 1 deletions
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);