From 74827b80342df2044acfe92be88d2a9edca58e15 Mon Sep 17 00:00:00 2001 From: Nicky Date: Sat, 10 Mar 2012 19:37:47 +0100 Subject: [PATCH] FIRE-5420; Proper initialization of LLSoundHistoryItem. --- indra/llaudio/llaudioengine.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/indra/llaudio/llaudioengine.h b/indra/llaudio/llaudioengine.h index 36b990b8f2..65b0a16ce9 100644 --- a/indra/llaudio/llaudioengine.h +++ b/indra/llaudio/llaudioengine.h @@ -478,7 +478,7 @@ protected: extern LLAudioEngine* gAudiop; // NaCl - Sound explorer -typedef struct +struct LLSoundHistoryItem { LLUUID mID; LLVector3d mPosition; @@ -494,7 +494,20 @@ typedef struct bool mReviewed; bool mReviewedCollision; LLAudioSource* mAudioSource; -} LLSoundHistoryItem; + + LLSoundHistoryItem() + : mType(0) + , mPlaying(0) + , mIsTrigger(0) + , mIsLooped(0) + , mTimeStarted(0.f) + , mTimeStopped(0.f) + , mReviewed(false) + , mReviewedCollision(false) + , mAudioSource(0) + { + } +}; extern std::map gSoundHistory; // NaCl End