diff options
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) |