aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/smk_player.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/graphics/smk_player.cpp b/graphics/smk_player.cpp
index 83db8ede81..758f98c7e6 100644
--- a/graphics/smk_player.cpp
+++ b/graphics/smk_player.cpp
@@ -412,6 +412,7 @@ bool SMKPlayer::loadFile(const char *fileName) {
_image = (byte *)malloc(2 * _header.width * _header.height);
_palette = (byte *)malloc(3 * 256);
+ memset(_palette, 0, 3 * 256);
return true;
}