From 9b4a8f3ad455cea966571c8f85e8939a5320aecd Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Mon, 1 Feb 2021 21:33:57 +0100 Subject: tmnt.cpp, taito_f3.cpp: initialized some variables that were causing crashes / asserts in drvnoclear builds --- src/mame/drivers/tmnt.cpp | 2 ++ src/mame/video/taito_f3.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/src/mame/drivers/tmnt.cpp b/src/mame/drivers/tmnt.cpp index b020c236603..727e3241419 100644 --- a/src/mame/drivers/tmnt.cpp +++ b/src/mame/drivers/tmnt.cpp @@ -2541,6 +2541,8 @@ void tmnt_state::sunsetbl(machine_config &config) m_palette->enable_shadows(); m_palette->enable_hilights(); + MCFG_VIDEO_START_OVERRIDE(tmnt_state,lgtnfght) + K052109(config, m_k052109, 0); m_k052109->set_palette(m_palette); m_k052109->set_screen(nullptr); diff --git a/src/mame/video/taito_f3.cpp b/src/mame/video/taito_f3.cpp index 9656f15d1f1..5349f4bbe01 100644 --- a/src/mame/video/taito_f3.cpp +++ b/src/mame/video/taito_f3.cpp @@ -502,6 +502,7 @@ void taito_f3_state::video_start() m_tilemap[1] = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(taito_f3_state::get_tile_info<1>)), TILEMAP_SCAN_ROWS, 16, 16, 64, 32); m_tilemap[2] = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(taito_f3_state::get_tile_info<2>)), TILEMAP_SCAN_ROWS, 16, 16, 64, 32); m_tilemap[3] = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(taito_f3_state::get_tile_info<3>)), TILEMAP_SCAN_ROWS, 16, 16, 64, 32); + m_tilemap[4] = m_tilemap[5] = m_tilemap[6] = m_tilemap[7] = nullptr; m_pf_data[0] = m_pf_ram + (0x0000 / 2); m_pf_data[1] = m_pf_ram + (0x2000 / 2); -- cgit v1.2.3