aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2013-01-02 22:05:13 +0100
committerTorbjörn Andersson2013-01-02 22:05:13 +0100
commit6a8fc83f427a450c98fb9ecddbacbc823f7efac4 (patch)
tree01a2191362f78d757364b77d781aba50204df755
parent304ac2a7c4a3164504ad292de057f5b821fcbc58 (diff)
downloadscummvm-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.cpp2
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));
}