X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FAccount.cpp;h=b3d42c7d320eb55bb120848428338baa45d7e719;hb=f66f0e0b961dd138e4a60554373de9e64abd973b;hp=b93eff19ad5978f91628d4885a43c70a879c31be;hpb=af1d37a1d6e36f63c514c20dc6413e9d61146ec6;p=lugaru.git diff --git a/Source/Account.cpp b/Source/Account.cpp index b93eff1..b3d42c7 100644 --- a/Source/Account.cpp +++ b/Source/Account.cpp @@ -75,7 +75,7 @@ Account* Account::destroy(Account* a) return NULL; } } - printf("Unexpected error : User %s not found\n", a->getName()); + printf("Unexpected error : User %s not found\n", a->getName().c_str()); return accounts.front(); } @@ -199,13 +199,12 @@ void Account::saveFile(string filename, Account* accountactive) tfile = fopen(filename.c_str(), "wb" ); if (tfile) { - printf("writing %d accounts :\n", getNbAccounts()); fpackf(tfile, "Bi", getNbAccounts()); fpackf(tfile, "Bi", indice(accountactive)); for (int i = 0; i < getNbAccounts(); i++) { Account* a = Account::get(i); - printf("writing account %d/%d (%s)\n", i + 1, getNbAccounts(), a->getName()); + printf("writing account %d/%d (%s)\n", i + 1, getNbAccounts(), a->getName().c_str()); fpackf(tfile, "Bi", a->difficulty); fpackf(tfile, "Bi", a->progress); fpackf(tfile, "Bi", a->campaignProgress.size());