Răsfoiți Sursa

gcc/clang build fix

rextimmy 7 ani în urmă
părinte
comite
fd23f0d0e9

+ 2 - 1
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();
          //}

+ 1 - 1
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;