1
0
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:
Sadie Powell
2026-02-24 01:07:47 +00:00
parent f380b27ed3
commit f91cf1745d
+6 -1
View File
@@ -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)