fix crash when changing chip

it was somehow possible to exceed the channel limit...
This commit is contained in:
tildearrow 2024-02-21 15:55:15 -05:00
parent 9dbb1f7371
commit f0bf58eef2
4 changed files with 99 additions and 12 deletions

View file

@ -1155,11 +1155,14 @@ class DivEngine {
void delUnusedSamples();
// change system
void changeSystem(int index, DivSystem which, bool preserveOrder=true);
bool changeSystem(int index, DivSystem which, bool preserveOrder=true);
// add system
bool addSystem(DivSystem which);
// duplicate system
bool duplicateSystem(int index, bool pat=true, bool end=false);
// remove system
bool removeSystem(int index, bool preserveOrder=true);