mirror of
https://github.com/anope/anope.git
synced 2026-06-12 17:04:47 +02:00
Fix db_json restoring the object identifier when unserialising.
This commit is contained in:
@@ -219,7 +219,12 @@ private:
|
||||
return;
|
||||
|
||||
for (auto it = entries.first; it != entries.second; ++it)
|
||||
s_type->Unserialize(nullptr, it->second);
|
||||
{
|
||||
auto &data = it->second;
|
||||
auto *obj = s_type->Unserialize(nullptr, data);
|
||||
if (obj && data.id)
|
||||
obj->object_id = data.id;
|
||||
}
|
||||
}
|
||||
|
||||
std::optional<DBData> ReadDatabase(const Anope::string &dbname)
|
||||
|
||||
Reference in New Issue
Block a user