summaryrefslogtreecommitdiff
path: root/src/audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio.c')
-rw-r--r--src/audio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/audio.c b/src/audio.c
index 45ee6c9..48f3718 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -60,8 +60,10 @@ int laudioLoadSound( lua_State *L ) {
lua_pushinteger( L, i );
checkSoundRealloc( i );
}
-
- return 1;
+ else {
+ lua_pushinteger( L, -1 );
+ return 1;
+ }
}
/*