From 04014d4e9a5732307e8e13a5e69e30c38bbd5c00 Mon Sep 17 00:00:00 2001 From: Allanis Date: Sat, 23 Feb 2013 00:19:51 +0000 Subject: [PATCH] [Fix] Woops. .wav sounds not loading into memory propperly. --- src/sound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound.c b/src/sound.c index e048ed0..7ee956b 100644 --- a/src/sound.c +++ b/src/sound.c @@ -164,7 +164,7 @@ static int sound_makeList(void) { sound_list = realloc(sound_list, ++nsound_list * sizeof(alSound)); // Remove the prefix and suffix. - len = strlen(files[i]) - strlen(SOUND_SUFFIX SOUND_SUFFIX); + len = strlen(files[i]) - strlen(SOUND_SUFFIX SOUND_PREFIX); strncpy(tmp, files[i] + strlen(SOUND_PREFIX), len); tmp[len] = '\0';