mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-14 05:59:29 +01:00
Core/Game: Move singleton instances into compilation units
* Fixes issues when building shared libraries
(prevents gcc and clang from providing several instance)
(cherry picked from commit 329225b40d)
This commit is contained in:
@@ -570,6 +570,12 @@ void PoolMgr::Initialize()
|
||||
mCreatureSearchMap.clear();
|
||||
}
|
||||
|
||||
PoolMgr* PoolMgr::instance()
|
||||
{
|
||||
static PoolMgr instance;
|
||||
return &instance;
|
||||
}
|
||||
|
||||
void PoolMgr::LoadFromDB()
|
||||
{
|
||||
// Pool templates
|
||||
|
||||
Reference in New Issue
Block a user