Commit 153cd36c authored by nanahira's avatar nanahira

Fix SoundManager PlaySoundEffect UTF-8 decode

parent 38e58ef6
......@@ -254,7 +254,7 @@ void SoundManager::PlaySoundEffect(int sound) {
return;
}
wchar_t soundNameW[32];
BufferIO::DecodeUTF8(soundName, soundNameW);
BufferIO::DecodeUTF8(soundName.c_str(), soundNameW);
wchar_t soundPathW[40];
myswprintf(soundPathW, L"./sound/%ls.wav", soundNameW);
PlaySound(soundPathW);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment