aboutsummaryrefslogtreecommitdiff
path: root/src/trinityrealm/Main.cpp
diff options
context:
space:
mode:
authorSpp <none@none>2010-05-02 00:06:08 +0200
committerSpp <none@none>2010-05-02 00:06:08 +0200
commit274457a7fb5a88ca43a07086ec52b06de19ef514 (patch)
treeed85bc25c7342dd87d828fbf7859cbba17be2b7b /src/trinityrealm/Main.cpp
parenta0e1357e2b35544e636443cedc3ae2d933df1454 (diff)
Make RealmList a Singleton.
Patch by Anubiss --HG-- branch : trunk
Diffstat (limited to 'src/trinityrealm/Main.cpp')
-rw-r--r--src/trinityrealm/Main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/trinityrealm/Main.cpp b/src/trinityrealm/Main.cpp
index aba65e06c9a..c023e84b5b4 100644
--- a/src/trinityrealm/Main.cpp
+++ b/src/trinityrealm/Main.cpp
@@ -61,7 +61,6 @@ void UnhookSignals();
void HookSignals();
bool stopEvent = false; ///< Setting it to true stops the server
-RealmList m_realmList; ///< Holds the list of realms for this server
DatabaseType loginDatabase; ///< Accessor to the realm server database
@@ -194,8 +193,8 @@ extern int main(int argc, char **argv)
}
///- Get the list of realms for the server
- m_realmList.Initialize(sConfig.GetIntDefault("RealmsStateUpdateDelay", 20));
- if (m_realmList.size() == 0)
+ sRealmList->Initialize(sConfig.GetIntDefault("RealmsStateUpdateDelay", 20));
+ if (sRealmList->size() == 0)
{
sLog.outError("No valid realms specified.");
return 1;