From: Alexander Monakov Date: Sun, 12 Dec 2010 10:28:25 +0000 (+0300) Subject: Fix failure to create 'Users' file X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=fe0ec1a86fe360ccd9149671fd66ee2fee7b774c;p=lugaru.git Fix failure to create 'Users' file --- diff --git a/Source/Account.cpp b/Source/Account.cpp index 90b585a..d601c4a 100644 --- a/Source/Account.cpp +++ b/Source/Account.cpp @@ -169,7 +169,7 @@ void Account::saveFile(string filename, Account* accountactive) { int numaccounts; int j; - tfile=fopen(ConvertFileName(filename.c_str()), "wb" ); + tfile=fopen(ConvertFileName(filename.c_str(), "wb"), "wb" ); if(tfile) { printf("writing %d accounts :\n",getNbAccounts());