From e35ed960ee217b6ee87c7ea4162cc658ed86bd53 Mon Sep 17 00:00:00 2001 From: Nelsson Huotari Date: Sun, 6 Oct 2019 21:57:10 +0300 Subject: [PATCH] for -> std::copy --- 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 5673e17b2..00c2efe41 100644 --- a/components/esm/loadland.cpp +++ b/components/esm/loadland.cpp @@ -324,10 +324,7 @@ namespace ESM mContext (land.mContext), mDataTypes (land.mDataTypes), mLandData (land.mLandData ? new LandData (*land.mLandData) : 0) { - for (int i = 0; i < LAND_GLOBAL_MAP_LOD_SIZE; ++i) - { - mWnam[i] = static_cast(land.mWnam[i]); - } + std::copy(land.mWnam, land.mWnam + LAND_GLOBAL_MAP_LOD_SIZE, mWnam); } Land& Land::operator= (Land land)