diff --git a/lib/spells/effects/Registry.cpp b/lib/spells/effects/Registry.cpp index 304d336aa..9584f93a8 100644 --- a/lib/spells/effects/Registry.cpp +++ b/lib/spells/effects/Registry.cpp @@ -16,8 +16,6 @@ namespace spells namespace effects { -std::unique_ptr Instance; - namespace detail { class RegistryImpl : public Registry @@ -53,8 +51,7 @@ Registry::~Registry() = default; Registry * Registry::get() { - if(!Instance) - Instance = make_unique(); + static std::unique_ptr Instance = make_unique(); return Instance.get(); }