summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/mame/video/gameplan.c2
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;