diff options
author | Ivan Vangelista <mesgnet@yahoo.it> | 2021-02-10 19:21:56 +0100 |
---|---|---|
committer | Ivan Vangelista <mesgnet@yahoo.it> | 2021-02-10 19:21:56 +0100 |
commit | 8364e1860827da78796e73e43fd646858c9ef20c (patch) | |
tree | 42aadf7ff3afe6f31636dbe0da8135fad4edb5d1 /src/mame/includes | |
parent | cc45dfe9cb7b5fe147310016ea2108517ded2cb5 (diff) |
sauro, sliver, speedatk, topspeed: initialized some variables which were causing incorrect behaviours in drvnoclear debug builds
Diffstat (limited to 'src/mame/includes')
-rw-r--r-- | src/mame/includes/speedatk.h | 6 | ||||
-rw-r--r-- | src/mame/includes/topspeed.h | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/mame/includes/speedatk.h b/src/mame/includes/speedatk.h index 87189613e55..0b5c11e4763 100644 --- a/src/mame/includes/speedatk.h +++ b/src/mame/includes/speedatk.h @@ -23,6 +23,10 @@ public: void speedatk(machine_config &config); +protected: + virtual void machine_start() override; + virtual void video_start() override; + private: required_device<cpu_device> m_maincpu; required_device<mc6845_device> m_crtc; @@ -47,8 +51,6 @@ private: void m6845_w(offs_t offset, uint8_t data); void output_w(uint8_t data); - virtual void machine_start() override; - virtual void video_start() override; void speedatk_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); diff --git a/src/mame/includes/topspeed.h b/src/mame/includes/topspeed.h index 6a5c418df73..6b35a16e45d 100644 --- a/src/mame/includes/topspeed.h +++ b/src/mame/includes/topspeed.h @@ -86,7 +86,7 @@ private: u8 m_msm2_vck2; #ifdef MAME_DEBUG - u8 m_dislayer[5]; + u8 m_dislayer[5] = { 0, 0, 0, 0, 0 }; #endif void msm5205_update(int chip); |