aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2005-03-12 14:32:09 +0000
committerTravis Howell2005-03-12 14:32:09 +0000
commit4a18a5de446dceafeaa447dc227f07a939e879ef (patch)
tree6320b443cb1f6685c0a21acdb9b8c4c69cb8de21 /scumm
parent4deeeec1bb225947e2db512997459a6be86c1ac3 (diff)
downloadscummvm-rg350-4a18a5de446dceafeaa447dc227f07a939e879ef.tar.gz
scummvm-rg350-4a18a5de446dceafeaa447dc227f07a939e879ef.tar.bz2
scummvm-rg350-4a18a5de446dceafeaa447dc227f07a939e879ef.zip
Off by one.
svn-id: r17097
Diffstat (limited to 'scumm')
-rw-r--r--scumm/scumm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp
index f53e05daa0..f7be216687 100644
--- a/scumm/scumm.cpp
+++ b/scumm/scumm.cpp
@@ -1549,7 +1549,7 @@ void ScummEngine_v90he::scummInit() {
_hePaletteNum = 0;
spritesResetTables(0);
- _hePalettes = (uint8 *)malloc(_numPalettes * 1024);
+ _hePalettes = (uint8 *)malloc((_numPalettes + 1) * 1024);
memset(&_wizParams, 0, sizeof(_wizParams));
}