aboutsummaryrefslogtreecommitdiff
path: root/engines/tony
diff options
context:
space:
mode:
authorPaul Gilbert2012-06-23 15:25:03 +1000
committerPaul Gilbert2012-06-23 15:25:03 +1000
commit46d87ef76a7e2b7b8c53c4dee2d043192accf159 (patch)
treeaa71c69ef78521cfba2ea5fbe467f3bd25a5bfe2 /engines/tony
parent717756749df4a1effa2628d5a7c039401c1d1f47 (diff)
downloadscummvm-rg350-46d87ef76a7e2b7b8c53c4dee2d043192accf159.tar.gz
scummvm-rg350-46d87ef76a7e2b7b8c53c4dee2d043192accf159.tar.bz2
scummvm-rg350-46d87ef76a7e2b7b8c53c4dee2d043192accf159.zip
TONY: Bugfix for loading ambient music when restoring a savegame
Diffstat (limited to 'engines/tony')
-rw-r--r--engines/tony/sound.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/tony/sound.cpp b/engines/tony/sound.cpp
index b0a2c69fd6..31e008eb62 100644
--- a/engines/tony/sound.cpp
+++ b/engines/tony/sound.cpp
@@ -486,8 +486,11 @@ bool FPStream::loadFile(const Common::String &fileName, uint32 dwCodType, int nB
_dwCodec = dwCodType;
// Open the file stream for reading
- if (!_file.open(fileName))
- return false;
+ if (!_file.open(fileName)) {
+ // Fallback: try with an extra '0' prefix
+ if (!_file.open("0" + fileName))
+ return false;
+ }
// Save the size of the stream
_dwSize = _file.size();