summaryrefslogtreecommitdiff
path: root/src/resources/soundeffect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/soundeffect.cpp')
-rw-r--r--src/resources/soundeffect.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resources/soundeffect.cpp b/src/resources/soundeffect.cpp
index 9cf511965..f817f9c44 100644
--- a/src/resources/soundeffect.cpp
+++ b/src/resources/soundeffect.cpp
@@ -31,7 +31,8 @@ SoundEffect::~SoundEffect()
Mix_FreeChunk(mChunk);
}
-Resource *SoundEffect::load(SDL_RWops *const rw)
+Resource *SoundEffect::load(SDL_RWops *const rw,
+ const std::string &name)
{
if (!rw)
return nullptr;
@@ -40,7 +41,7 @@ Resource *SoundEffect::load(SDL_RWops *const rw)
if (tmpSoundEffect)
{
- return new SoundEffect(tmpSoundEffect);
+ return new SoundEffect(tmpSoundEffect, name);
}
else
{