mirror of
https://github.com/holub/mame
synced 2025-04-21 07:52:35 +03:00
fix buffer overflow
This commit is contained in:
parent
07b11906f6
commit
6e855b9cf7
@ -143,7 +143,8 @@ WRITE8_MEMBER( monty_state::ioDisplayWrite )
|
||||
|
||||
// Pixel color
|
||||
const bool on = (com >> i) & 0x01;
|
||||
m_pixels[(y*42) + x] = on ? 0xffffffff : 0xff000000;
|
||||
if (x < 42)
|
||||
m_pixels[(y*42) + x] = on ? 0xffffffff : 0xff000000;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user