aboutsummaryrefslogtreecommitdiff
path: root/src/server/worldserver/Main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/worldserver/Main.cpp')
-rw-r--r--src/server/worldserver/Main.cpp13
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;
}