mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +00:00
Make RealmList proper singleton in realmd.
This commit is contained in:
parent
1f23884757
commit
6abf7e7f58
4 changed files with 14 additions and 8 deletions
|
|
@ -33,6 +33,12 @@ RealmList::RealmList( ) : m_UpdateInterval(0), m_NextUpdateTime(time(NULL))
|
|||
{
|
||||
}
|
||||
|
||||
RealmList& RealmList::Instance()
|
||||
{
|
||||
static RealmList realmlist;
|
||||
return realmlist;
|
||||
}
|
||||
|
||||
/// Load the realm list from the database
|
||||
void RealmList::Initialize(uint32 updateInterval)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue