1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-26 02:38:04 +00:00

fixed static problem in Land recrod save function

This commit is contained in:
Marc Zinnschlag 2013-11-28 11:51:21 +01:00
parent 5aea6ef80f
commit e432ab5e8a

View File

@ -14,7 +14,7 @@ void Land::LandData::save(ESMWriter &esm)
esm.writeHNT("VNML", mNormals, sizeof(VNML));
}
if (mDataTypes & Land::DATA_VHGT) {
static VHGT offsets;
VHGT offsets;
offsets.mHeightOffset = mHeights[0] / HEIGHT_SCALE;
offsets.mUnk1 = mUnk1;
offsets.mUnk2 = mUnk2;