From 9c8e327ae27f7d2eef10142bad7c37c11d1c8f89 Mon Sep 17 00:00:00 2001 From: Rangi42 Date: Mon, 27 Jan 2025 18:36:22 -0500 Subject: [PATCH] Zero-initialize `trimmedTile` array --- src/gfx/reverse.cpp | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/gfx/reverse.cpp b/src/gfx/reverse.cpp index fdc61dd3..2d0711d4 100644 --- a/src/gfx/reverse.cpp +++ b/src/gfx/reverse.cpp @@ -467,24 +467,7 @@ void reverse() { assume(palID < palettes.size()); // Should be ensured on data read // We do not have data for tiles trimmed with `-x`, so assume they are "blank" - static std::array const trimmedTile{ - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - }; + static std::array const trimmedTile{0x00}; uint8_t const *tileData = tileOfs >= nbTiles ? trimmedTile.data() : &tiles[tileOfs * tileSize]; auto const &palette = palettes[palID];