summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/lordgun.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/lordgun.cpp')
-rw-r--r--src/mame/video/lordgun.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/video/lordgun.cpp b/src/mame/video/lordgun.cpp
index 84b686eda1b..ec3b479611e 100644
--- a/src/mame/video/lordgun.cpp
+++ b/src/mame/video/lordgun.cpp
@@ -145,7 +145,7 @@ float lordgun_crosshair_mapper(ioport_field *field, float linear_value)
{
int x = linear_value - 0x3c;
- if ( (x < 0) || (x > ARRAY_LENGTH(lordgun_gun_x_table)) )
+ if ( (x < 0) || (x > std::size(lordgun_gun_x_table)) )
x = 0;
return lordgun_gun_x_table[x] * 1.0f / 0x1BF;
@@ -157,7 +157,7 @@ void lordgun_state::lorddgun_calc_gun_scr(int i)
int x = ioport(gunnames[i])->read() - 0x3c;
- if ( (x < 0) || (x > ARRAY_LENGTH(lordgun_gun_x_table)) )
+ if ( (x < 0) || (x > std::size(lordgun_gun_x_table)) )
x = 0;
m_gun[i].scr_x = lordgun_gun_x_table[x];