Browse Source

base: fix typo in sample.cpp that prevented sample loads.

legacy
Sam Hocevar sam 11 years ago
parent
commit
b12e6f914c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/sample.cpp

+ 1
- 1
src/sample.cpp View File

@@ -66,7 +66,7 @@ Sample::Sample(char const *path)
Array<String> 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;
}


Loading…
Cancel
Save