File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
ObjectCluster/SoundEnginePlugin Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -338,9 +338,13 @@ void ObjectClusterFX::ProcessUnclustered(
338338 AkAudioObject* outObj,
339339 AkAudioBuffer* outBuf) {
340340
341+ if (outObj == nullptr || inBuf == nullptr || outBuf == nullptr ) {
342+ return ;
343+ }
344+
341345 m_utilities->CopyBuffer (inBuf, outBuf);
342346 outObj->positioning .threeD .xform .SetPosition (inObj->positioning .threeD .xform .Position ());
343- outObj-> arCustomMetadata . Copy (inObj-> arCustomMetadata );
347+
344348 outBuf->eState = inBuf->eState ;
345349 outBuf->uValidFrames = inBuf->uValidFrames ;
346350 outObj->SetName (m_pAllocator, " Not clustered" );
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ trademarks of CCP ehf.
4040#include < unordered_map>
4141#include " KMeans.h"
4242#include " Utilities.h"
43+ #include < memory>
4344
4445/* *
4546 * @struct GeneratedObject
You can’t perform that action at this time.
0 commit comments