summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatarGravatar Robbbert <Robbbert@users.noreply.github.com>2018-02-05 01:18:11 +1100
committerGravatarGravatar Robbbert <Robbbert@users.noreply.github.com>2018-02-05 01:18:11 +1100
commitab5b3f76135df83da9d5590194ae0cc2a951ed4c (patch) (github)
tree090241685bdfec42848091e9494761d854a73969 /src
parenta496a992665db23740110ff6942c1488e58b7ebf (diff)
downloadmame-ab5b3f76135df83da9d5590194ae0cc2a951ed4c.tar.bz2
mame-ab5b3f76135df83da9d5590194ae0cc2a951ed4c.zip
(nw) Fixed the build (buffer overflow)
Diffstat (limited to 'src')
-rw-r--r--src/mame/drivers/konmedal68k.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/konmedal68k.cpp b/src/mame/drivers/konmedal68k.cpp
index 2afa0a73818..9d453cb35e6 100644
--- a/src/mame/drivers/konmedal68k.cpp
+++ b/src/mame/drivers/konmedal68k.cpp
@@ -137,7 +137,7 @@ uint32_t konmedal68k_state::screen_update_konmedal68k(screen_device &screen, bit
pri[i] = m_k055555->K055555_read_register(K55_PRIINP_0 + i * 3);
}
- for (i = 0; i < NUM_LAYERS + 1; i++)
+ for (i = 0; i < NUM_LAYERS; i++)
{
order[i] = i;
}