diff --git a/components/esm3/loadland.cpp b/components/esm3/loadland.cpp index 74edf30498..ee0cca9bc4 100644 --- a/components/esm3/loadland.cpp +++ b/components/esm3/loadland.cpp @@ -220,7 +220,7 @@ namespace ESM mLandData = std::make_unique(); mLandData->mHeightOffset = 0; - mLandData->mHeights.fill(0); + std::fill(std::begin(mLandData->mHeights), std::end(mLandData->mHeights), DEFAULT_HEIGHT); mLandData->mMinHeight = 0; mLandData->mMaxHeight = 0; for (size_t i = 0; i < LandRecordData::sLandNumVerts; ++i)