Ditched ACE_Singleton in favor of C++11 like Singleton

This commit is contained in:
leak
2014-05-31 15:58:59 +02:00
parent f05d540658
commit bf6e58b8d4
3 changed files with 15 additions and 10 deletions

View File

@@ -152,8 +152,9 @@ int main(int argc, char** argv)
return 1;
// Get the list of realms for the server
sRealmList->Initialize(sConfigMgr->GetIntDefault("RealmsStateUpdateDelay", 20));
if (sRealmList->size() == 0)
sRealmList.Initialize(sConfigMgr->GetIntDefault("RealmsStateUpdateDelay", 20));
if (sRealmList.size() == 0)
{
TC_LOG_ERROR("server.authserver", "No valid realms specified.");
return 1;