aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/audio.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mumd/src/audio.rs')
-rw-r--r--mumd/src/audio.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mumd/src/audio.rs b/mumd/src/audio.rs
index e11c328..0df2852 100644
--- a/mumd/src/audio.rs
+++ b/mumd/src/audio.rs
@@ -250,7 +250,7 @@ impl Audio {
.map(|event| {
let bytes = overrides.get(&event)
.map(|file| get_sfx(file))
- .unwrap_or_else(|| get_default_sfx());
+ .unwrap_or_else(get_default_sfx);
let reader = hound::WavReader::new(bytes.as_ref()).unwrap();
let spec = reader.spec();
let samples = match spec.sample_format {