aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sdl2/mixer/samples.ha2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdl2/mixer/samples.ha b/sdl2/mixer/samples.ha
index 2dce2ef..0a45151 100644
--- a/sdl2/mixer/samples.ha
+++ b/sdl2/mixer/samples.ha
@@ -23,7 +23,7 @@ export fn Mix_LoadWAV_RW(src: io::handle) (*Mix_Chunk | sdl2::error) = {
// Loads a sample from a file path.
export fn load_file(src: str) (*Mix_Chunk | fs::error | sdl2::error) = {
const file = os::open(src)?;
- defer io::close(file);
+ defer io::close(file)!;
return Mix_LoadWAV_RW(file);
};