fix critical bug when removing systems
This commit is contained in:
parent
32cdeb108f
commit
1642f29df8
|
@ -2750,7 +2750,7 @@ bool DivEngine::removeSystem(int index) {
|
||||||
song.system[index]=DIV_SYSTEM_NULL;
|
song.system[index]=DIV_SYSTEM_NULL;
|
||||||
song.systemLen--;
|
song.systemLen--;
|
||||||
for (int i=index; i<song.systemLen; i++) {
|
for (int i=index; i<song.systemLen; i++) {
|
||||||
song.system[index]=song.system[index+1];
|
song.system[i]=song.system[i+1];
|
||||||
}
|
}
|
||||||
recalcChans();
|
recalcChans();
|
||||||
isBusy.unlock();
|
isBusy.unlock();
|
||||||
|
|
Loading…
Reference in a new issue