1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 20:53:50 +00:00

Valgrind: Added constructor for KeyListT class, and added initialziation of ver member field in NIFFile class.

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
This commit is contained in:
Lukasz Gromanowski 2014-06-15 09:37:24 +02:00
parent fc6366fb27
commit abeb1d4ab3
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.
NIFFile::NIFFile(const std::string &name, psudo_private_modifier)
: filename(name)
: ver(0)
, filename(name)
{
parse();
}

View file

@ -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)
{