aboutsummaryrefslogtreecommitdiff
path: root/engines/cryomni3d/versailles/music.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cryomni3d/versailles/music.cpp')
-rw-r--r--engines/cryomni3d/versailles/music.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/cryomni3d/versailles/music.cpp b/engines/cryomni3d/versailles/music.cpp
index 524c5244a4..a19e82a538 100644
--- a/engines/cryomni3d/versailles/music.cpp
+++ b/engines/cryomni3d/versailles/music.cpp
@@ -67,8 +67,7 @@ void CryOmni3DEngine_Versailles::musicUpdate() {
// New file, stop the old one first
musicStop();
- Common::String musicFName = musicBName;
- musicFName += ".wav";
+ Common::String musicFName(prepareFileName(musicBName, "wav"));
Common::File *musicFile = new Common::File();
if (!musicFile->open(musicFName)) {