From f92eb9352d79c7c60e18ff05a814213746c90d26 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Tue, 29 Mar 2022 01:36:45 -0500 Subject: [PATCH] GUI: fix visual glitch when changing song length --- src/gui/songInfo.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/songInfo.cpp b/src/gui/songInfo.cpp index e9caf5af..b5923801 100644 --- a/src/gui/songInfo.cpp +++ b/src/gui/songInfo.cpp @@ -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();