Add missing AIReadAccessConst initialization of mIsCopyConstructed

This commit is contained in:
Aleric Inglewood
2011-05-15 05:03:34 +02:00
parent 697f0ad054
commit 4e68f5878a

View File

@@ -305,7 +305,11 @@ struct AIReadAccessConst
protected:
//! Constructor used by AIReadAccess.
AIReadAccessConst(AIThreadSafe<T>& wrapper, state_type state)
: mWrapper(wrapper), mState(state) { }
: mWrapper(wrapper), mState(state)
#if AI_NEED_ACCESS_CC
, mIsCopyConstructed(false)
#endif
{ }
AIThreadSafe<T>& mWrapper; //!< Reference to the object that we provide access to.
state_type const mState; //!< The lock state that mWrapper is in.