From cf42883f5e4820da34ece065e3dcec30ccd4e0c8 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 31 May 2016 13:29:33 +0200 Subject: TOON: Init memory before usage --- engines/tinsel/palette.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/tinsel') 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 -- cgit v1.2.3