diff options
author | 2014-08-08 09:23:43 +0000 | |
---|---|---|
committer | 2014-08-08 09:23:43 +0000 | |
commit | b111c772510a7732e86f6fb44d9e146ea4a7a391 (patch) | |
tree | 06e8f0a375402ad8e466113555c8824e1e0caa88 | |
parent | 0bdd8082564dddd3b7cfdcfa6b43a5c7adc7fb8b (diff) |
clamping pen access in gameplan_state::screen_update_leprechn() (nw)
-rw-r--r-- | src/mame/video/gameplan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/video/gameplan.c b/src/mame/video/gameplan.c index d7bb5efdfb0..c9baeb41ce4 100644 --- a/src/mame/video/gameplan.c +++ b/src/mame/video/gameplan.c @@ -125,7 +125,7 @@ UINT32 gameplan_state::screen_update_leprechn(screen_device &screen, bitmap_rgb3 UINT8 y = offs >> 8; UINT8 x = offs & 0xff; - bitmap.pix32(y, x) = pens[m_videoram[offs]]; + bitmap.pix32(y, x) = pens[m_videoram[offs] & (LEPRECHN_NUM_PENS-1)]; } return 0; |