diff --git a/include/database.hpp b/include/database.hpp index cec0056a..0ae77a93 100644 --- a/include/database.hpp +++ b/include/database.hpp @@ -67,8 +67,8 @@ void Database :: load() _db[i] = NULL; else { _db[i] = new T; - _db[i]->read(_file); _db[i]->id = i; + _db[i]->read(_file); _keys[_db[i]->primary_key()] = i; _size++; }