/*
Copyright (C) 2003, 2010 - Wolfire Games
-Copyright (C) 2010 - MCMic
+Copyright (C) 2010 - Côme <MCMic> BERNIGAUD
This file is part of Lugaru.
}
Account* Account::get(int i) {
- if(i<accounts.size()) {
+
+ if((i>=0)&&(i<accounts.size())) {
return accounts[i];
} else
return NULL;
void Account::saveFile(string filename, Account* accountactive) {
FILE *tfile;
- int numaccounts;
int j;
tfile=fopen(ConvertFileName(filename.c_str(), "wb"), "wb" );