aboutsummaryrefslogtreecommitdiff
path: root/src/server/authserver/Server/BattlenetManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/authserver/Server/BattlenetManager.cpp')
-rw-r--r--src/server/authserver/Server/BattlenetManager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/authserver/Server/BattlenetManager.cpp b/src/server/authserver/Server/BattlenetManager.cpp
index f8ff5d8989e..f470c365b56 100644
--- a/src/server/authserver/Server/BattlenetManager.cpp
+++ b/src/server/authserver/Server/BattlenetManager.cpp
@@ -87,10 +87,10 @@ bool BattlenetMgr::HasComponent(Battlenet::Component const* component) const
return false;
}
-Battlenet::ModuleInfo const* BattlenetMgr::GetModule(Battlenet::ModuleKey const& key) const
+Battlenet::ModuleInfo* BattlenetMgr::CreateModule(std::string const& os, std::string const& name) const
{
- if (_modules.count(key))
- return _modules.at(key);
+ Battlenet::ModuleKey key { os, name };
+ ASSERT(_modules.count(key));
- return NULL;
+ return new Battlenet::ModuleInfo(*_modules.at(key));
}