1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-28 09:54:49 +00:00

Ensures offset and flags are initialised to 0.

This prevents a potential crash at startup.
This commit is contained in:
Thomas Harte 2018-10-29 22:09:32 -04:00
parent 0d051502e2
commit f65d80b7d1

View File

@ -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.