1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-31 22:15:33 +00:00

Uninitialized basenode fix

This commit is contained in:
scrawl 2015-04-30 23:17:06 +02:00
parent 15bdb7db01
commit c90125f936

View file

@ -37,7 +37,7 @@ namespace MWWorld
}
RefData::RefData()
: mBaseNode(0), mHasLocals (false), mEnabled (true), mCount (1), mCustomData (0), mChanged(false), mDeleted(false)
: mBaseNode(0), mBase(0), mHasLocals (false), mEnabled (true), mCount (1), mCustomData (0), mChanged(false), mDeleted(false)
{
for (int i=0; i<3; ++i)
{
@ -48,7 +48,7 @@ namespace MWWorld
}
RefData::RefData (const ESM::CellRef& cellRef)
: mBaseNode(0), mHasLocals (false), mEnabled (true), mCount (1), mPosition (cellRef.mPos),
: mBaseNode(0), mBase(0), mHasLocals (false), mEnabled (true), mCount (1), mPosition (cellRef.mPos),
mCustomData (0),
mChanged(false), // Loading from ESM/ESP files -> assume unchanged
mDeleted(false)
@ -59,7 +59,7 @@ namespace MWWorld
}
RefData::RefData (const ESM::ObjectState& objectState)
: mBaseNode (0), mHasLocals (false), mEnabled (objectState.mEnabled != 0),
: mBaseNode (0), mBase(0), mHasLocals (false), mEnabled (objectState.mEnabled != 0),
mCount (objectState.mCount), mPosition (objectState.mPosition), mCustomData (0),
mChanged(true), // Loading from a savegame -> assume changed
mDeleted(false)
@ -69,7 +69,7 @@ namespace MWWorld
}
RefData::RefData (const RefData& refData)
: mBaseNode(0), mCustomData (0)
: mBaseNode(0), mBase(0), mCustomData (0)
{
try
{