Merge pull request #2188 from rextimmy/gcc_clang_fix

gcc/clang build fix
This commit is contained in:
Areloch 2018-02-04 13:16:58 -06:00 committed by GitHub
commit 0191bf5fc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -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();
//}

View file

@ -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;