From b12e6f914c395fded4eef3114325055615492072 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 18 Feb 2013 23:32:30 +0000 Subject: [PATCH] base: fix typo in sample.cpp that prevented sample loads. --- src/sample.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sample.cpp b/src/sample.cpp index 086fc00e..2d5eed57 100644 --- a/src/sample.cpp +++ b/src/sample.cpp @@ -66,7 +66,7 @@ Sample::Sample(char const *path) Array pathlist = System::GetPathList(path); for (int i = 0; i < pathlist.Count(); ++i) { - data->chunk = Mix_LoadWAV(pathlist[0].C()); + data->chunk = Mix_LoadWAV(pathlist[i].C()); if (data->chunk) break; }