2
0
Эх сурвалжийг харах

moved most_recently_used() call

Dave Schuyler 24 жил өмнө
parent
commit
f7712d1e61

+ 1 - 1
panda/src/audiotraits/milesAudioManager.cxx

@@ -219,10 +219,10 @@ get_sound(const string& file_name) {
       si=ib.first;
       si=ib.first;
     }
     }
   }
   }
-  most_recently_used((*si).first);
   // Create an AudioSound from the sound:
   // Create an AudioSound from the sound:
   PT(AudioSound) audioSound = 0;
   PT(AudioSound) audioSound = 0;
   if (audio) {
   if (audio) {
+    most_recently_used((*si).first);
     PT(MilesAudioSound) milesAudioSound
     PT(MilesAudioSound) milesAudioSound
         =new MilesAudioSound(this, audio, (*si).first);
         =new MilesAudioSound(this, audio, (*si).first);
     nassertr(milesAudioSound, 0);
     nassertr(milesAudioSound, 0);