Fix crashes.

This commit is contained in:
Mr_Goldberg 2022-08-05 18:45:33 -04:00
parent 528120d102
commit ad66573a20
No known key found for this signature in database
GPG key ID: 8597D87419DEF278
2 changed files with 10 additions and 3 deletions

View file

@ -801,11 +801,11 @@ void Steam_Overlay::OverlayProc()
bool hidden = x.hidden && !achieved;
ImGui::Separator();
ImGui::Text(x.title.c_str());
ImGui::Text("%s", x.title.c_str());
if (x.hidden) {
ImGui::Text("hidden achievement");
} else {
ImGui::TextWrapped(x.description.c_str());
ImGui::TextWrapped("%s", x.description.c_str());
}
if (achieved) {