GUI: fix visual glitch when changing song length

This commit is contained in:
tildearrow 2022-03-29 01:36:45 -05:00
parent 92c1add075
commit f92eb9352d
1 changed files with 3 additions and 0 deletions

View File

@ -124,6 +124,9 @@ void FurnaceGUI::drawSongInfo() {
if (ordLen<1) ordLen=1;
if (ordLen>127) ordLen=127;
e->song.ordersLen=ordLen;
if (e->getOrder()>=ordLen) {
e->setOrder(ordLen-1);
}
}
ImGui::TableNextRow();