mirror of
https://github.com/holub/mame
synced 2025-04-22 00:11:58 +03:00
ymf262: fix off-by-one error in OPL3_SLOT_CONNECT
This commit is contained in:
parent
0c148bc9fc
commit
faae06a228
@ -631,7 +631,7 @@ static inline void OPL3_SLOT_CONNECT(OPL3 *chip, OPL3_SLOT *slot) {
|
||||
if (slot->conn_enum == CONN_NULL) {
|
||||
slot->connect = nullptr;
|
||||
} else if (slot->conn_enum >= CONN_CHAN0 && slot->conn_enum < CONN_PHASEMOD) {
|
||||
slot->connect = &chip->chanout[slot->conn_enum];
|
||||
slot->connect = &chip->chanout[slot->conn_enum - CONN_CHAN0];
|
||||
} else if (slot->conn_enum == CONN_PHASEMOD) {
|
||||
slot->connect = &chip->phase_modulation;
|
||||
} else if (slot->conn_enum == CONN_PHASEMOD2) {
|
||||
|
Loading…
Reference in New Issue
Block a user