Fix freeze on tools->settings

This commit is contained in:
Jasmine Iwanek
2023-02-02 07:47:58 -05:00
committed by GitHub
parent a6ca6e3001
commit 91b86f1bb8

View File

@@ -82,8 +82,8 @@ SettingsSound::onCurrentMachineChanged(int machineId)
selectedRow = 0;
while (true) {
/* Skip "internal" if machine doesn't have it for the first card, always skip for others. */
if (((c == 1) && (machine_has_flags(machineId, MACHINE_SOUND) == 0)) || (i != 0)) {
/* Skip "internal" if machine doesn't have it. */
if ((c == 1) && (machine_has_flags(machineId, MACHINE_SOUND) == 0)) {
c++;
continue;
}