diff options
author | Torbjörn Andersson | 2013-01-02 22:05:13 +0100 |
---|---|---|
committer | Torbjörn Andersson | 2013-01-02 22:05:13 +0100 |
commit | 6a8fc83f427a450c98fb9ecddbacbc823f7efac4 (patch) | |
tree | 01a2191362f78d757364b77d781aba50204df755 | |
parent | 304ac2a7c4a3164504ad292de057f5b821fcbc58 (diff) | |
download | scummvm-rg350-6a8fc83f427a450c98fb9ecddbacbc823f7efac4.tar.gz scummvm-rg350-6a8fc83f427a450c98fb9ecddbacbc823f7efac4.tar.bz2 scummvm-rg350-6a8fc83f427a450c98fb9ecddbacbc823f7efac4.zip |
TOLTECS: Silence Valgrind warnings
At the very least, _mainPalette[] was being used (partly?)
uninitialised in buildColorTransTable(), causing lots of warnings.
-rw-r--r-- | engines/toltecs/palette.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/toltecs/palette.cpp b/engines/toltecs/palette.cpp index c88d80e627..b93bb8b510 100644 --- a/engines/toltecs/palette.cpp +++ b/engines/toltecs/palette.cpp @@ -32,6 +32,8 @@ namespace Toltecs { Palette::Palette(ToltecsEngine *vm) : _vm(vm) { clearFragments(); + memset(_mainPalette, 0, sizeof(_mainPalette)); + memset(_animPalette, 0, sizeof(_animPalette)); memset(_colorTransTable, 0, sizeof(_colorTransTable)); } |