From 2a7d22702cce12f3d0ab04b6f0d1c187346c72f3 Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Mon, 16 Feb 2009 07:17:36 +0000 Subject: initialize palette buffers (compiler warning) svn-id: r38351 --- engines/sci/engine/game.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines') diff --git a/engines/sci/engine/game.cpp b/engines/sci/engine/game.cpp index ff0e0db24b..72f771951f 100644 --- a/engines/sci/engine/game.cpp +++ b/engines/sci/engine/game.cpp @@ -213,6 +213,8 @@ _reset_graphics_input(state_t *s) { // This bit sets the foreground and background colors in VGA SCI games gfx_color_t fgcolor; gfx_color_t bgcolor; + memset(&fgcolor, 0, sizeof(gfx_color_t)); + memset(&bgcolor, 0, sizeof(gfx_color_t)); #if 0 fgcolor.visual = s->gfx_state->resstate->static_palette[0]; -- cgit v1.2.3