From 032a801a99f29324cbba187bed5d84f9066e7420 Mon Sep 17 00:00:00 2001 From: rextimmy Date: Sun, 4 Feb 2018 09:32:39 +1000 Subject: [PATCH] gcc/clang build fix --- Engine/source/T3D/components/audio/SoundComponent.cpp | 3 ++- Engine/source/T3D/components/audio/SoundComponent.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Engine/source/T3D/components/audio/SoundComponent.cpp b/Engine/source/T3D/components/audio/SoundComponent.cpp index 179282d2a..9552c2d67 100644 --- a/Engine/source/T3D/components/audio/SoundComponent.cpp +++ b/Engine/source/T3D/components/audio/SoundComponent.cpp @@ -359,7 +359,8 @@ void SoundComponent::updateAudioState(Sound& st) { //if (Sim::findObject(SimObjectId((uintptr_t)st.profile), st.profile)) // { - st.sound = SFX->createSource(st.profile, &mOwner->getTransform()); + MatrixF transform = mOwner->getTransform(); + st.sound = SFX->createSource(st.profile, &transform); if (st.sound) st.sound->play(); //} diff --git a/Engine/source/T3D/components/audio/SoundComponent.h b/Engine/source/T3D/components/audio/SoundComponent.h index 77dfef067..a56bc600e 100644 --- a/Engine/source/T3D/components/audio/SoundComponent.h +++ b/Engine/source/T3D/components/audio/SoundComponent.h @@ -67,7 +67,7 @@ public: SimTime timeout; ///< Time until we stop playing this sound. SFXTrack* profile; ///< Profile on server SFXSource* sound; ///< Sound on client - Sound::Sound() + Sound() { play = false; timeout = 0;