mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-12-01 18:15:41 +00:00
ImGuiOverlays: Fix possible crash in save state selector
This commit is contained in:
parent
84b24c6228
commit
f666816943
|
@ -1054,8 +1054,8 @@ void SaveStateSelectorUI::Draw()
|
||||||
ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoBackground);
|
ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoBackground);
|
||||||
{
|
{
|
||||||
ImGui::SetCursorPosX(padding);
|
ImGui::SetCursorPosX(padding);
|
||||||
ImGui::BeginTable("table", 2);
|
if (ImGui::BeginTable("table", 2))
|
||||||
|
{
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::TextUnformatted(s_load_legend.c_str());
|
ImGui::TextUnformatted(s_load_legend.c_str());
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
|
@ -1067,6 +1067,7 @@ void SaveStateSelectorUI::Draw()
|
||||||
|
|
||||||
ImGui::EndTable();
|
ImGui::EndTable();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
ImGui::EndChild();
|
ImGui::EndChild();
|
||||||
}
|
}
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
|
|
Loading…
Reference in a new issue