add unique_ptr for sound

This commit is contained in:
Askou
2021-06-07 15:39:57 +02:00
parent 7d7ede07e9
commit 0458bde5ae
3 changed files with 14 additions and 16 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ namespace BBM
SoundComponent &operator=(const SoundComponent &) = delete;
private:
//! @brief Sound of this entity
std::map<soundIndex, RAY::Audio::Sound> _soundList;
std::map<soundIndex, std::unique_ptr<RAY::Audio::Sound>> _soundList;
std::map<soundIndex, bool> _isLoad;