damn
This commit is contained in:
parent
5f299996df
commit
d26c8d576b
|
|
@ -885,12 +885,11 @@ void FurnaceGUI::doAction(int what) {
|
||||||
break;
|
break;
|
||||||
case GUI_ACTION_WAVE_LIST_CREATE_SAMPLE:
|
case GUI_ACTION_WAVE_LIST_CREATE_SAMPLE:
|
||||||
if (curWave>=0 && curWave<(int)e->song.wave.size()) {
|
if (curWave>=0 && curWave<(int)e->song.wave.size()) {
|
||||||
DivSample* prevSample=e->getSample(curSample);
|
|
||||||
curSample=e->addSample();
|
curSample=e->addSample();
|
||||||
if (curSample==-1) {
|
if (curSample==-1) {
|
||||||
showError(_("too many samples!"));
|
showError(_("too many samples!"));
|
||||||
} else {
|
} else {
|
||||||
e->lockEngine([this,prevSample]() {
|
e->lockEngine([this]() {
|
||||||
DivSample* sample=e->getSample(curSample);
|
DivSample* sample=e->getSample(curSample);
|
||||||
if (sample!=NULL) {
|
if (sample!=NULL) {
|
||||||
unsigned int waveLen=e->song.wave[curWave]->len;
|
unsigned int waveLen=e->song.wave[curWave]->len;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue