]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Account.cpp
Some reorganization of MenuTick.
[lugaru.git] / Source / Account.cpp
index d601c4ac64a4ded51ea548d0c95a611fd7120cc1..b17d8e5596a72a48f664fc173718af7cb7d8c9da 100644 (file)
@@ -1,6 +1,6 @@
 /*
 Copyright (C) 2003, 2010 - Wolfire Games
-Copyright (C) 2010 - MCMic
+Copyright (C) 2010 - Côme <MCMic> BERNIGAUD
 
 This file is part of Lugaru.
 
@@ -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;