diff --git a/include/database.hpp b/include/database.hpp index a8800128..fad06e44 100644 --- a/include/database.hpp +++ b/include/database.hpp @@ -28,9 +28,11 @@ void Database :: save() _file << _db.size() << std::endl; for (unsigned int i = 0; i < _db.size(); i++) { - _file << _db[i].valid << " "; - if (_db[i].valid == true) + _file << _db[i].valid; + if (_db[i].valid == true) { + _file << " "; _db[i].write(_file); + } _file << std::endl; }