1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-16 07:10:08 +00:00

Fix careless mistake.

This commit is contained in:
Kyle Cooley 2017-09-09 23:18:09 -04:00
parent 25d4a0370f
commit 09e645a0e0

View File

@ -238,10 +238,9 @@ namespace ESM
// Copy data to target if no file
if (mContext.filename.empty())
{
if (mLandData)
// Make sure there is data, and that it doesn't point to the same object.
if (mLandData && mLandData != target)
*target = *mLandData;
else
target = new LandData;
return;
}