mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-31 06:07:37 +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:
@@ -857,11 +857,7 @@ class ScriptMgr
|
||||
virtual ~ScriptMgr();
|
||||
|
||||
public: /* Initialization */
|
||||
static ScriptMgr* instance()
|
||||
{
|
||||
static ScriptMgr instance;
|
||||
return &instance;
|
||||
}
|
||||
static ScriptMgr* instance();
|
||||
|
||||
void Initialize();
|
||||
void LoadDatabase();
|
||||
|
||||
Reference in New Issue
Block a user