aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/glk/magnetic/graphics.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/glk/magnetic/graphics.cpp b/engines/glk/magnetic/graphics.cpp
index 5ba20531d3..d9c62a1b89 100644
--- a/engines/glk/magnetic/graphics.cpp
+++ b/engines/glk/magnetic/graphics.cpp
@@ -302,6 +302,7 @@ int16 Magnetic::find_name_in_header(const Common::String &name, bool upper) {
void Magnetic::extract_frame(const picture *pic) {
uint32 i, x, y, bit_x, mask, ywb, yw, value, values[4];
+ values[0] = values[1] = values[2] = values[3] = 0;
if (pic->width * pic->height > MAX_PICTURE_SIZE) {
error("picture too large");