]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Account.cpp
rename music1, music2, music3
[lugaru.git] / 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;