Browse Source

moved most_recently_used() call

Dave Schuyler 24 years ago
parent
commit
f7712d1e61
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/audiotraits/milesAudioManager.cxx

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

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