mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-29 04:06:40 +00:00
Fix careless mistake.
This commit is contained in:
parent
25d4a0370f
commit
09e645a0e0
1 changed files with 2 additions and 3 deletions
|
@ -238,10 +238,9 @@ namespace ESM
|
||||||
// Copy data to target if no file
|
// Copy data to target if no file
|
||||||
if (mContext.filename.empty())
|
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;
|
*target = *mLandData;
|
||||||
else
|
|
||||||
target = new LandData;
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue