From 3ea1407ed330efbf96a83bf981e55884a7a8386a Mon Sep 17 00:00:00 2001 From: scrawl Date: Wed, 15 Jan 2014 03:56:59 +0100 Subject: [PATCH] Closes #1109: Don't reset water level when loading a plugin that does include water level records --- components/esm/loadcell.cpp | 2 -- components/esm/loadcell.hpp | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/esm/loadcell.cpp b/components/esm/loadcell.cpp index c22c1b22b6..f6bc29ae17 100644 --- a/components/esm/loadcell.cpp +++ b/components/esm/loadcell.cpp @@ -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) diff --git a/components/esm/loadcell.hpp b/components/esm/loadcell.hpp index 61d586b9d8..b066f497ec 100644 --- a/components/esm/loadcell.hpp +++ b/components/esm/loadcell.hpp @@ -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;