diff options
author | Alexander Tkachev | 2016-06-19 12:58:02 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 2d3cfffa84f80578dfc0bd3c72b83587f9b8dae5 (patch) | |
tree | d9bb4aa2b825ebca920464362a5f6003fc4764d2 /engines/kyra/saveload_eob.cpp | |
parent | 65e87c6c70fc1e5af8f0c3fb762ca13e6aa6a8e4 (diff) | |
download | scummvm-rg350-2d3cfffa84f80578dfc0bd3c72b83587f9b8dae5.tar.gz scummvm-rg350-2d3cfffa84f80578dfc0bd3c72b83587f9b8dae5.tar.bz2 scummvm-rg350-2d3cfffa84f80578dfc0bd3c72b83587f9b8dae5.zip |
KYRA: Fix openSaveForWriting() to return OutSaveFile
Diffstat (limited to 'engines/kyra/saveload_eob.cpp')
-rw-r--r-- | engines/kyra/saveload_eob.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/saveload_eob.cpp b/engines/kyra/saveload_eob.cpp index 6fdff0fc80..9329d14255 100644 --- a/engines/kyra/saveload_eob.cpp +++ b/engines/kyra/saveload_eob.cpp @@ -328,7 +328,7 @@ Common::Error EoBCoreEngine::saveGameStateIntern(int slot, const char *saveName, fileName = getSavegameFilename(slot); } - Common::OutSaveFile *out = new Common::OutSaveFile(openSaveForWriting(fileName, saveName, thumbnail)); + Common::OutSaveFile *out = openSaveForWriting(fileName, saveName, thumbnail); if (!out) return _saveFileMan->getError(); |