diff options
author | Shauren <shauren.trinity@gmail.com> | 2023-08-03 11:18:11 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2023-08-03 11:18:11 +0200 |
commit | cc6dba1376905456062d1ade8adcbaed4f8f484e (patch) | |
tree | ee6b969f3ea69f3f403cc51d155dc15964b7b9d1 /src/server/worldserver/Main.cpp | |
parent | 8594fcfe8a0085a087bce510e3b4cb14f632434f (diff) |
Core/Realms: Minor refactor to realm address storage (remove LocalSubnetMask as it is now unused, db field kept for table structure compatibility with 3.3.5 branch)
Diffstat (limited to 'src/server/worldserver/Main.cpp')
-rw-r--r-- | src/server/worldserver/Main.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/server/worldserver/Main.cpp b/src/server/worldserver/Main.cpp index 013b4b0f977..3c3184f4ddc 100644 --- a/src/server/worldserver/Main.cpp +++ b/src/server/worldserver/Main.cpp @@ -617,18 +617,7 @@ bool LoadRealmInfo() { if (Realm const* realmListRealm = sRealmList->GetRealm(realm.Id)) { - realm.Id = realmListRealm->Id; - realm.Build = realmListRealm->Build; - realm.ExternalAddress = std::make_unique<boost::asio::ip::address>(*realmListRealm->ExternalAddress); - realm.LocalAddress = std::make_unique<boost::asio::ip::address>(*realmListRealm->LocalAddress); - realm.Port = realmListRealm->Port; - realm.Name = realmListRealm->Name; - realm.NormalizedName = realmListRealm->NormalizedName; - realm.Type = realmListRealm->Type; - realm.Flags = realmListRealm->Flags; - realm.Timezone = realmListRealm->Timezone; - realm.AllowedSecurityLevel = realmListRealm->AllowedSecurityLevel; - realm.PopulationLevel = realmListRealm->PopulationLevel; + realm = *realmListRealm; return true; } |