fix compile errors

This commit is contained in:
arthur.jamet
2021-06-17 20:50:43 +02:00
parent 1cf820bf87
commit 051096a194
43 changed files with 124 additions and 137 deletions
+5 -5
View File
@@ -11,17 +11,17 @@ namespace BBM
float SoundComponent::volume = 0.75;
SoundComponent::SoundComponent(WAL::Entity &entity,
const std::map<SoundComponent::SoundIndex, std::string> &soundPath,
const std::map<SoundComponent::SoundIndex, std::string> &soundsPath,
bool isLonely)
: WAL::Component(entity),
_soundIndex(IDLE),
_soundPath(soundPath),
_isLonely(isLonely)
_isLonely(isLonely),
_soundPath(soundsPath),
_soundIndex(IDLE)
{
for (int i = 0; i <= DEATH; i++) {
this->_isSoundLoad[static_cast<SoundIndex>(i)] = false;
}
for (auto &soundPath : soundPath)
for (auto &soundPath : soundsPath)
{
this->_isSoundLoad[soundPath.first] = true;
this->_soundList[soundPath.first] = std::make_unique<RAY::Audio::Sound>(soundPath.second, this->_isLonely);