Skip to content

Commit

Permalink
monaco: fix out-of-bounds array access (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhys-T authored Oct 1, 2024
1 parent 2a11da7 commit 873bccc
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/hbmame/drivers/monaco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1457,10 +1457,13 @@ void monaco_state::machine_reset()
m_rescue_x = 0;
m_rescue_y = 0;
m_rescue_tile = 0;
m_x[NUM_COMPUTER_CARS] = 0;
m_y[NUM_COMPUTER_CARS] = 0;
m_tile[NUM_COMPUTER_CARS] = 0;
m_color[NUM_COMPUTER_CARS] = 0;
for(u8 i=0; i<NUM_COMPUTER_CARS; i++)
{
m_x[i] = 0;
m_y[i] = 0;
m_tile[i] = 0;
m_color[i] = 0;
}
m_led_high1 = 0;
m_led_high2 = 0;
m_led_high3 = 0;
Expand Down

0 comments on commit 873bccc

Please sign in to comment.