Merge remote-tracking branch 'lgro/valgrind_fixes'

This commit is contained in:
Marc Zinnschlag 2014-06-15 10:57:01 +02:00
commit c8c45d4923
2 changed files with 4 additions and 1 deletions

View file

@ -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. /// Open a NIF stream. The name is used for error messages.
NIFFile::NIFFile(const std::string &name, psudo_private_modifier) NIFFile::NIFFile(const std::string &name, psudo_private_modifier)
: filename(name) : ver(0)
, filename(name)
{ {
parse(); parse();
} }

View file

@ -161,6 +161,8 @@ struct KeyListT {
unsigned int mInterpolationType; unsigned int mInterpolationType;
VecType mKeys; VecType mKeys;
KeyListT() : mInterpolationType(sLinearInterpolation) {}
//Read in a KeyGroup (see http://niftools.sourceforge.net/doc/nif/NiKeyframeData.html) //Read in a KeyGroup (see http://niftools.sourceforge.net/doc/nif/NiKeyframeData.html)
void read(NIFStream *nif, bool force=false) void read(NIFStream *nif, bool force=false)
{ {