GUI: fix SNES chip config out of bounds

issue #1319
This commit is contained in:
tildearrow 2023-08-03 14:55:30 -05:00
parent a192274e29
commit cf1f741769
3 changed files with 10 additions and 4 deletions

View file

@ -4160,7 +4160,7 @@ bool FurnaceGUI::loop() {
exitDisabledTimer=1;
for (int i=0; i<e->song.systemLen; i++) {
if (ImGui::TreeNode(fmt::sprintf("%d. %s##_SYSP%d",i+1,getSystemName(e->song.system[i]),i).c_str())) {
drawSysConf(i,e->song.system[i],e->song.systemFlags[i],true);
drawSysConf(i,e->song.system[i],e->song.systemFlags[i],true,true);
ImGui::TreePop();
}
}