From 33d43021e8ce10448d6ed543376628a61568256b Mon Sep 17 00:00:00 2001 From: Pepper0ni <93387759+Pepper0ni@users.noreply.github.com> Date: Thu, 14 Nov 2024 22:10:40 +0000 Subject: [PATCH] fix icon looping on linux --- soh/soh/Enhancements/randomizer/Plandomizer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/soh/soh/Enhancements/randomizer/Plandomizer.cpp b/soh/soh/Enhancements/randomizer/Plandomizer.cpp index 728342152d2..2a452931505 100644 --- a/soh/soh/Enhancements/randomizer/Plandomizer.cpp +++ b/soh/soh/Enhancements/randomizer/Plandomizer.cpp @@ -642,7 +642,10 @@ void PlandomizerDrawItemPopup(uint32_t index) { [](const auto& a, const auto& b) { auto typeA = a.first.GetItemType(); auto typeB = b.first.GetItemType(); + if (typeA != typeB){ return typeA < typeB; + } + return a.first.GetRandomizerGet() < b.first.GetRandomizerGet(); }); ImGui::SeparatorText("Resources"); ImGui::BeginTable("Infinite Item Table", 7);