aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2016-05-31 13:29:33 +0200
committerEugene Sandulenko2016-05-31 17:12:18 +0200
commitcf42883f5e4820da34ece065e3dcec30ccd4e0c8 (patch)
tree5c39ab942979342381d578466f3696e3b11f0329 /engines
parent12f10a22643a0973422b3cb0ecfc2f5bd1428346 (diff)
downloadscummvm-rg350-cf42883f5e4820da34ece065e3dcec30ccd4e0c8.tar.gz
scummvm-rg350-cf42883f5e4820da34ece065e3dcec30ccd4e0c8.tar.bz2
scummvm-rg350-cf42883f5e4820da34ece065e3dcec30ccd4e0c8.zip
TOON: Init memory before usage
Diffstat (limited to 'engines')
-rw-r--r--engines/tinsel/palette.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/tinsel/palette.cpp b/engines/tinsel/palette.cpp
index 918894cf6f..495049d1a2 100644
--- a/engines/tinsel/palette.cpp
+++ b/engines/tinsel/palette.cpp
@@ -132,6 +132,8 @@ void PalettesToVideoDAC() {
VIDEO_DAC_Q *pDACtail = g_vidDACdata; // set tail pointer
byte pal[768];
+ memset(pal, 0, sizeof(pal));
+
// while Q is not empty
while (g_pDAChead != pDACtail) {
const PALETTE *pPalette; // pointer to hardware palette