1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00
This commit is contained in:
AlexVinS
2018-03-10 19:35:20 +03:00
parent b2faf30d0d
commit 7d27d144a5

View File

@@ -16,8 +16,6 @@ namespace spells
namespace effects namespace effects
{ {
std::unique_ptr<Registry> Instance;
namespace detail namespace detail
{ {
class RegistryImpl : public Registry class RegistryImpl : public Registry
@@ -53,8 +51,7 @@ Registry::~Registry() = default;
Registry * Registry::get() Registry * Registry::get()
{ {
if(!Instance) static std::unique_ptr<Registry> Instance = make_unique<detail::RegistryImpl>();
Instance = make_unique<detail::RegistryImpl>();
return Instance.get(); return Instance.get();
} }