From 1776ede9e1155034429e0e65185523e02f410e87 Mon Sep 17 00:00:00 2001 From: Michael Papageorgiou Date: Mon, 5 Mar 2012 16:06:46 +0200 Subject: [PATCH] Broken sound path fix --- apps/openmw/mwsound/soundmanager.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwsound/soundmanager.cpp b/apps/openmw/mwsound/soundmanager.cpp index 76ef23bc2..6795eff19 100644 --- a/apps/openmw/mwsound/soundmanager.cpp +++ b/apps/openmw/mwsound/soundmanager.cpp @@ -410,7 +410,12 @@ namespace MWSound if(useSound) { - mData = new SoundImpl(root, camera, store, dataDirs /* Sound */, dataDirs /* Music */, fsstrict); + Files::PathContainer soundDirs;; + for (Files::PathContainer::const_iterator it = dataDirs.begin(); it != dataDirs.end(); ++it) + { + soundDirs.push_back( *it / std::string("Sound")); + } + mData = new SoundImpl(root, camera, store, soundDirs /* Sound */, dataDirs /* Music */, fsstrict); } test.name = "";