1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-05 00:45:36 +00:00

Closes #1109: Don't reset water level when loading a plugin that does include water level records

This commit is contained in:
scrawl 2014-01-15 03:56:59 +01:00
parent d4aeb177f9
commit 3ea1407ed3
2 changed files with 2 additions and 2 deletions

View file

@ -36,8 +36,6 @@ void Cell::load(ESMReader &esm, bool saveContext)
esm.getHNT(mData, "DATA", 12);
// Water level
mWater = -1;
mNAM0 = 0;
if (mData.mFlags & Interior)

View file

@ -77,6 +77,8 @@ struct Cell
float mFogDensity;
};
Cell() : mWater(-1) {}
// Interior cells are indexed by this (it's the 'id'), for exterior
// cells it is optional.
std::string mName;