From 4e68f5878a4460b5cea44e245537b204acb83028 Mon Sep 17 00:00:00 2001 From: Aleric Inglewood Date: Sun, 15 May 2011 05:03:34 +0200 Subject: [PATCH] Add missing AIReadAccessConst initialization of mIsCopyConstructed --- indra/llcommon/aithreadsafe.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/indra/llcommon/aithreadsafe.h b/indra/llcommon/aithreadsafe.h index 486b3b24f..3963281cb 100644 --- a/indra/llcommon/aithreadsafe.h +++ b/indra/llcommon/aithreadsafe.h @@ -305,7 +305,11 @@ struct AIReadAccessConst protected: //! Constructor used by AIReadAccess. AIReadAccessConst(AIThreadSafe& wrapper, state_type state) - : mWrapper(wrapper), mState(state) { } + : mWrapper(wrapper), mState(state) +#if AI_NEED_ACCESS_CC + , mIsCopyConstructed(false) +#endif + { } AIThreadSafe& mWrapper; //!< Reference to the object that we provide access to. state_type const mState; //!< The lock state that mWrapper is in.