diff --git a/components/nif/niffile.cpp b/components/nif/niffile.cpp index 10847e8f4..84f4aacee 100644 --- a/components/nif/niffile.cpp +++ b/components/nif/niffile.cpp @@ -172,7 +172,8 @@ NIFFile::ptr NIFFile::create (const std::string &name) { return LoadedCache::cre /// Open a NIF stream. The name is used for error messages. NIFFile::NIFFile(const std::string &name, psudo_private_modifier) - : filename(name) + : ver(0) + , filename(name) { parse(); } diff --git a/components/nif/niffile.hpp b/components/nif/niffile.hpp index fbb64e4f7..bc9e99faf 100644 --- a/components/nif/niffile.hpp +++ b/components/nif/niffile.hpp @@ -161,6 +161,8 @@ struct KeyListT { unsigned int mInterpolationType; VecType mKeys; + KeyListT() : mInterpolationType(sLinearInterpolation) {} + //Read in a KeyGroup (see http://niftools.sourceforge.net/doc/nif/NiKeyframeData.html) void read(NIFStream *nif, bool force=false) {