mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
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)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user