diff --git a/CHANGELOG.md b/CHANGELOG.md index 47e5bb485..d84a661ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -154,6 +154,7 @@ Bug #5168: Force1stPerson and Force3rdPerson commands are not really force view change Bug #5169: Nested levelled items/creatures have significantly higher chance not to spawn Bug #5175: Random script function returns an integer value + Bug #5177: Editor: Unexplored map tiles get corrupted after a file with terrain is saved Feature #1774: Handle AvoidNode Feature #2229: Improve pathfinding AI Feature #3025: Analogue gamepad movement controls diff --git a/CHANGELOG_PR.md b/CHANGELOG_PR.md index afd2dafcc..3062cc9d2 100644 --- a/CHANGELOG_PR.md +++ b/CHANGELOG_PR.md @@ -102,6 +102,7 @@ Editor Bug Fixes: - Cloned, added, or moved instances no longer disappear at load-time (#4748) - "Clear" function in the content selector no longer tries to execute a "Remove" action on an empty file list (#4757) - Engine no longer tries to swap buffers of windows which weren't exposed to Qt's window management system (#4911) +- Minimap doesn't get corrupted, when editing new omwgame (#5177) Miscellaneous: - Upgraded to FFMPEG3 for media decoding (#4686) diff --git a/components/esm/loadland.cpp b/components/esm/loadland.cpp index 722154757..c52483681 100644 --- a/components/esm/loadland.cpp +++ b/components/esm/loadland.cpp @@ -323,7 +323,9 @@ namespace ESM : mFlags (land.mFlags), mX (land.mX), mY (land.mY), mPlugin (land.mPlugin), mContext (land.mContext), mDataTypes (land.mDataTypes), mLandData (land.mLandData ? new LandData (*land.mLandData) : 0) - {} + { + std::copy(land.mWnam, land.mWnam + LAND_GLOBAL_MAP_LOD_SIZE, mWnam); + } Land& Land::operator= (Land land) { @@ -340,6 +342,7 @@ namespace ESM std::swap (mContext, land.mContext); std::swap (mDataTypes, land.mDataTypes); std::swap (mLandData, land.mLandData); + std::swap (mWnam, land.mWnam); } const Land::LandData *Land::getLandData (int flags) const