From f65d80b7d131ec37f3b01196ea22ea82d7a2fc2b Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 29 Oct 2018 22:09:32 -0400 Subject: [PATCH] Ensures offset and flags are initialised to 0. This prevents a potential crash at startup. --- Components/9918/Implementation/9918Base.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Components/9918/Implementation/9918Base.hpp b/Components/9918/Implementation/9918Base.hpp index 1e4b896f4..ac712ad1b 100644 --- a/Components/9918/Implementation/9918Base.hpp +++ b/Components/9918/Implementation/9918Base.hpp @@ -211,8 +211,8 @@ class Base { // The names array holds pattern names, as an offset into memory, and // potentially flags also. struct { - size_t offset; - uint8_t flags; + size_t offset = 0; + uint8_t flags = 0; } names[40]; // The patterns array holds tile patterns, corresponding 1:1 with names.