Skip to content

Commit

Permalink
SCUMM: Initialize _bannerColors
Browse files Browse the repository at this point in the history
This silences Valgrind warnings in COMI when saving.
  • Loading branch information
Torbjörn Andersson committed Nov 12, 2024
1 parent 5f375e4 commit 14a7efc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engines/scumm/gfx_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
namespace Scumm {

void ScummEngine::initBanners() {
memset(_bannerColors, 0, sizeof(_bannerColors));

setPalColor(7, 0x5A, 0x5A, 0x5A);
setPalColor(8, 0x46, 0x46, 0x46);
setPalColor(15, 0x8C, 0x8C, 0x8C);
Expand Down

0 comments on commit 14a7efc

Please sign in to comment.