mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-26 22:43:01 +00:00
GUI: fix duplicate entry in wave size selector
This commit is contained in:
parent
3b12564943
commit
4281b899cf
1 changed files with 10 additions and 0 deletions
|
@ -772,9 +772,19 @@ void FurnaceGUI::doAction(int what) {
|
|||
|
||||
|
||||
case GUI_ACTION_WAVE_LIST_ADD: {
|
||||
std::vector<DivSystem> alreadyDone;
|
||||
waveSizeList.clear();
|
||||
for (int i=0; i<e->song.systemLen; i++) {
|
||||
bool skip=false;
|
||||
for (DivSystem j: alreadyDone) {
|
||||
if (e->song.system[i]==j) {
|
||||
skip=true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (skip) continue;
|
||||
const DivSysDef* sysDef=e->getSystemDef(e->song.system[i]);
|
||||
alreadyDone.push_back(e->song.system[i]);
|
||||
if (sysDef==NULL) continue;
|
||||
|
||||
if (sysDef->waveHeight==0) continue;
|
||||
|
|
Loading…
Reference in a new issue