From 9cc2ea8a56dd72b00752ab47ead1958f29d6feed Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 20 Nov 2025 20:09:09 +0000 Subject: [PATCH] Don't reload the main database when reloading a module. --- modules/database/db_json.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/database/db_json.cpp b/modules/database/db_json.cpp index 2330690f8..35cb13923 100644 --- a/modules/database/db_json.cpp +++ b/modules/database/db_json.cpp @@ -353,11 +353,12 @@ public: if (!db) return EVENT_STOP; + auto it = databases.emplace(nullptr, std::move(db.value())).first; for (const auto &type : Serialize::Type::GetTypeOrder()) { auto *s_type = Serialize::Type::Find(type); if (s_type && !s_type->GetOwner()) - LoadType(s_type, db.value()); + LoadType(s_type, it->second); } loaded = true;