diff options
| -rw-r--r-- | scumm/scumm.cpp | 2 | 
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));  } | 
