mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[8793] Don't do operations through singleton if already in singleton context.
* Also, some minor things: - Remove duplicate sWorldLog define. - Add sRealmList macro for RealmList::Instance(). - Use sLog macro in scripting log functions.
This commit is contained in:
parent
146657885d
commit
b3f3ffa885
11 changed files with 32 additions and 32 deletions
|
|
@ -190,8 +190,8 @@ extern int main(int argc, char **argv)
|
|||
return 1;
|
||||
|
||||
///- Get the list of realms for the server
|
||||
RealmList::Instance().Initialize(sConfig.GetIntDefault("RealmsStateUpdateDelay", 20));
|
||||
if (RealmList::Instance().size() == 0)
|
||||
sRealmList.Initialize(sConfig.GetIntDefault("RealmsStateUpdateDelay", 20));
|
||||
if (sRealmList.size() == 0)
|
||||
{
|
||||
sLog.outError("No valid realms specified.");
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue