diff options
author | Gregory Montoir | 2004-11-27 18:01:44 +0000 |
---|---|---|
committer | Gregory Montoir | 2004-11-27 18:01:44 +0000 |
commit | 27d04815971a1c305d671fb9c2286adcda04dfa9 (patch) | |
tree | cfffa240ec504a2ec53b28806d99e686bf100590 | |
parent | 5e351b0c312a921f9e2e8090462afec5cce7dbb1 (diff) | |
download | scummvm-rg350-27d04815971a1c305d671fb9c2286adcda04dfa9.tar.gz scummvm-rg350-27d04815971a1c305d671fb9c2286adcda04dfa9.tar.bz2 scummvm-rg350-27d04815971a1c305d671fb9c2286adcda04dfa9.zip |
fixed potiential problem in scumm save/load code
svn-id: r15922
-rw-r--r-- | scumm/saveload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp index 95d4c548a4..381da99c59 100644 --- a/scumm/saveload.cpp +++ b/scumm/saveload.cpp @@ -812,7 +812,7 @@ void ScummEngine::saveOrLoad(Serializer *s, uint32 savegameVersion) { if (!_palManipPalette) _palManipPalette = (byte *)calloc(0x300, 1); if (!_palManipIntermediatePal) - _palManipPalette = (byte *)calloc(0x300, 1); + _palManipIntermediatePal = (byte *)calloc(0x600, 1); s->saveLoadArrayOf(_palManipPalette, 0x300, 1, sleByte); s->saveLoadArrayOf(_palManipIntermediatePal, 0x600, 1, sleByte); } |