From 2fdaacf23c78f9f70735e6c2235d9a9588aa0a2a Mon Sep 17 00:00:00 2001 From: Nelsson Huotari Date: Sun, 6 Oct 2019 23:50:16 +0300 Subject: [PATCH] remove for array, just std::swap --- components/esm/loadland.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/esm/loadland.cpp b/components/esm/loadland.cpp index 00c2efe41..c52483681 100644 --- a/components/esm/loadland.cpp +++ b/components/esm/loadland.cpp @@ -342,10 +342,7 @@ namespace ESM std::swap (mContext, land.mContext); std::swap (mDataTypes, land.mDataTypes); std::swap (mLandData, land.mLandData); - for (int i = 0; i < LAND_GLOBAL_MAP_LOD_SIZE; ++i) - { - std::swap (mWnam[i], land.mWnam[i]); - } + std::swap (mWnam, land.mWnam); } const Land::LandData *Land::getLandData (int flags) const