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; }