diff --git a/src/ppu.c b/src/ppu.c index e2c554c..8951441 100644 --- a/src/ppu.c +++ b/src/ppu.c @@ -3998,7 +3998,7 @@ static INLINE bool8 addCyclesInDMA (uint8 dma_channel) return retval; } -static uint8 dma_channels_to_be_used[8]; +static uint8 dma_channels_to_be_used[8] = {0}; static bool8 special_chips_active = FALSE; diff --git a/src/tile.c b/src/tile.c index 44ebdab..e269c11 100644 --- a/src/tile.c +++ b/src/tile.c @@ -214,7 +214,7 @@ static INLINE uint16 COLOR_SUB (uint16 C1, uint16 C2) } static uint16 DirectColourMaps[8][256]; -static uint16 BlackColourMap[256]}; +static uint16 BlackColourMap[256] = {0}; static void S9xBuildDirectColourMaps (void) {