diff options
author | Travis Howell | 2009-07-23 10:33:13 +0000 |
---|---|---|
committer | Travis Howell | 2009-07-23 10:33:13 +0000 |
commit | c8d7b677f864dde05a5544d3b0cb6cac3c22fcbe (patch) | |
tree | 93d196b461c859050b8984ec60b7d0d3795f0e41 /engines/scumm/he/script_v80he.cpp | |
parent | 68a75c21706928ed8bc20ac96b957e388926ee83 (diff) | |
download | scummvm-rg350-c8d7b677f864dde05a5544d3b0cb6cac3c22fcbe.tar.gz scummvm-rg350-c8d7b677f864dde05a5544d3b0cb6cac3c22fcbe.tar.bz2 scummvm-rg350-c8d7b677f864dde05a5544d3b0cb6cac3c22fcbe.zip |
Fix bug #1726909 - HE Games: Glitches after loading saved games, by restircting HE games to their original load/save interface.
svn-id: r42675
Diffstat (limited to 'engines/scumm/he/script_v80he.cpp')
-rw-r--r-- | engines/scumm/he/script_v80he.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/scumm/he/script_v80he.cpp b/engines/scumm/he/script_v80he.cpp index b71a0f9e10..d7e36106ea 100644 --- a/engines/scumm/he/script_v80he.cpp +++ b/engines/scumm/he/script_v80he.cpp @@ -89,7 +89,7 @@ void ScummEngine_v80he::o80_getFileSize() { byte buffer[256]; copyScriptString(buffer, sizeof(buffer)); - const char *filename = (char *)buffer + convertFilePath(buffer); + const char *filename = (char *)buffer + convertFilePath(buffer, sizeof(buffer)); Common::SeekableReadStream *f = 0; if (!_saveFileMan->listSavefiles(filename).empty()) { @@ -154,7 +154,7 @@ void ScummEngine_v80he::o80_readConfigFile() { copyScriptString(section, sizeof(section)); copyScriptString(filename, sizeof(filename)); - r = convertFilePath(filename); + r = convertFilePath(filename, sizeof(filename)); if (_game.id == GID_TREASUREHUNT) { // WORKAROUND: Remove invalid characters @@ -222,7 +222,7 @@ void ScummEngine_v80he::o80_writeConfigFile() { error("o80_writeConfigFile: default type %d", subOp); } - r = convertFilePath(filename); + r = convertFilePath(filename, sizeof(filename)); if (_game.id == GID_TREASUREHUNT) { // WORKAROUND: Remove invalid characters |