summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/mame/drivers/bfm_sc2.cpp1
-rw-r--r--src/mame/drivers/highvdeo.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/mame/drivers/bfm_sc2.cpp b/src/mame/drivers/bfm_sc2.cpp
index cd5b8e3a6bc..d2584833587 100644
--- a/src/mame/drivers/bfm_sc2.cpp
+++ b/src/mame/drivers/bfm_sc2.cpp
@@ -996,6 +996,7 @@ void bfm_sc2_state::payout_triac_w(uint8_t data)
if ( slide )
{
+ slide--; // slide_pay_sensor index is 0 to 5, so decrement now.
if ( data == 0x4D )
{
if ( !m_slide_states[slide] )
diff --git a/src/mame/drivers/highvdeo.cpp b/src/mame/drivers/highvdeo.cpp
index 16c02ff3922..d3c830779fd 100644
--- a/src/mame/drivers/highvdeo.cpp
+++ b/src/mame/drivers/highvdeo.cpp
@@ -641,7 +641,7 @@ uint16_t highvdeo_state::grancapi_status_r(offs_t offset)
resetpulse^=0x20;
return 3 | resetpulse;
- case 2: return (m_grancapi_prot_latch & 3)|0x17; //and 0x3f
+ case 2: return (m_grancapi_prot_latch & 3)|0x17; //and 0x3f // This will always return 0x17: Coverity 316053
}
return 0;