Skip to content

Commit

Permalink
damn
Browse files Browse the repository at this point in the history
  • Loading branch information
Eknous-P committed Dec 8, 2024
1 parent 57f38bc commit 0d22a31
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gui/doAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -885,12 +885,11 @@ void FurnaceGUI::doAction(int what) {
break;
case GUI_ACTION_WAVE_LIST_CREATE_SAMPLE:
if (curWave>=0 && curWave<(int)e->song.wave.size()) {
DivSample* prevSample=e->getSample(curSample);
curSample=e->addSample();
if (curSample==-1) {
showError(_("too many samples!"));
} else {
e->lockEngine([this,prevSample]() {
e->lockEngine([this]() {
DivSample* sample=e->getSample(curSample);
if (sample!=NULL) {
unsigned int waveLen=e->song.wave[curWave]->len;
Expand Down

0 comments on commit 0d22a31

Please sign in to comment.