no this is the actual fix

This commit is contained in:
Stepland 2019-01-18 14:02:55 +01:00
parent f692d1bec1
commit 9d629c15f8

View File

@ -284,9 +284,9 @@ void EditorState::displayChartList() {
ImGui::TextDisabled("Level"); ImGui::NextColumn();
ImGui::TextDisabled("Note Count"); ImGui::NextColumn();
ImGui::Separator();
for (auto tuple : fumen.Charts) {
for (auto& tuple : fumen.Charts) {
if (ImGui::Selectable(tuple.first.c_str(), selectedChart ? selectedChart->get()==tuple.second : false , ImGuiSelectableFlags_SpanAllColumns)) {
selectedChart->get() = tuple.second;
selectedChart = tuple.second;
}
ImGui::NextColumn();
ImGui::Text("%d",tuple.second.level); ImGui::NextColumn();