diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-02-13 15:31:46 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-02-13 20:55:48 +0100 |
commit | 3764664b20b8b85a6c0a0ec3a098251c3bcec4a0 (patch) | |
tree | 4f3fc5d8b98ca665a7d3dc59fb614b87ad9d6bfb /src/resources/soundeffect.cpp | |
parent | c70be70cab3615cb36cc5f244671cf5d39f1fda8 (diff) | |
download | mana-3764664b20b8b85a6c0a0ec3a098251c3bcec4a0.tar.gz mana-3764664b20b8b85a6c0a0ec3a098251c3bcec4a0.tar.bz2 mana-3764664b20b8b85a6c0a0ec3a098251c3bcec4a0.tar.xz mana-3764664b20b8b85a6c0a0ec3a098251c3bcec4a0.zip |
Fixed music playback
A faulty version check was disabling music loading entirely.
Diffstat (limited to 'src/resources/soundeffect.cpp')
-rw-r--r-- | src/resources/soundeffect.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/resources/soundeffect.cpp b/src/resources/soundeffect.cpp index 782d79d1..8f8cdfc5 100644 --- a/src/resources/soundeffect.cpp +++ b/src/resources/soundeffect.cpp @@ -37,11 +37,9 @@ Resource *SoundEffect::load(SDL_RWops *rw) { return new SoundEffect(tmpSoundEffect); } - else - { - logger->log("Error, failed to load sound effect: %s", Mix_GetError()); - return nullptr; - } + + logger->log("Error, failed to load sound effect: %s", Mix_GetError()); + return nullptr; } bool SoundEffect::play(int loops, int volume, int channel) |