fix critical bug when removing systems

This commit is contained in:
tildearrow 2022-01-18 22:02:04 -05:00
parent 32cdeb108f
commit 1642f29df8
1 changed files with 1 additions and 1 deletions

View File

@ -2750,7 +2750,7 @@ bool DivEngine::removeSystem(int index) {
song.system[index]=DIV_SYSTEM_NULL;
song.systemLen--;
for (int i=index; i<song.systemLen; i++) {
song.system[index]=song.system[index+1];
song.system[i]=song.system[i+1];
}
recalcChans();
isBusy.unlock();