]> git.jsancho.org Git - lugaru.git/commitdiff
Little fix in Account.cpp
authorCôme BERNIGAUD <come.bernigaud@laposte.net>
Mon, 14 Feb 2011 14:38:33 +0000 (15:38 +0100)
committerCôme BERNIGAUD <come.bernigaud@laposte.net>
Mon, 14 Feb 2011 14:38:33 +0000 (15:38 +0100)
Source/Account.cpp

index d601c4ac64a4ded51ea548d0c95a611fd7120cc1..3556c8711b3ea93c989ec9d9c639257634c02f05 100644 (file)
@@ -54,7 +54,8 @@ Account* Account::add(string name) {
 }
 
 Account* Account::get(int i) {
-       if(i<accounts.size()) {
+       
+       if((i>=0)&&(i<accounts.size())) {
                return accounts[i];
        } else
                return NULL;