Skip to content

Commit 0191bf5

Browse files
authored
Merge pull request GarageGames#2188 from rextimmy/gcc_clang_fix
gcc/clang build fix
2 parents 80c7dfc + 032a801 commit 0191bf5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Engine/source/T3D/components/audio/SoundComponent.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,8 @@ void SoundComponent::updateAudioState(Sound& st)
359359
{
360360
//if (Sim::findObject(SimObjectId((uintptr_t)st.profile), st.profile))
361361
// {
362-
st.sound = SFX->createSource(st.profile, &mOwner->getTransform());
362+
MatrixF transform = mOwner->getTransform();
363+
st.sound = SFX->createSource(st.profile, &transform);
363364
if (st.sound)
364365
st.sound->play();
365366
//}

Engine/source/T3D/components/audio/SoundComponent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class SoundComponent : public Component, public RenderComponentInterface, public
6767
SimTime timeout; ///< Time until we stop playing this sound.
6868
SFXTrack* profile; ///< Profile on server
6969
SFXSource* sound; ///< Sound on client
70-
Sound::Sound()
70+
Sound()
7171
{
7272
play = false;
7373
timeout = 0;

0 commit comments

Comments
 (0)