From 1ca7bf83319fe4f603b6efec425cca51326b3d51 Mon Sep 17 00:00:00 2001 From: CrazyBloo Date: Wed, 11 Sep 2024 13:05:01 -0400 Subject: [PATCH] fix review's from last pr --- src/core/libraries/np_trophy/np_trophy.cpp | 2 +- src/core/libraries/np_trophy/trophy_ui.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/libraries/np_trophy/np_trophy.cpp b/src/core/libraries/np_trophy/np_trophy.cpp index c3f83341a..d727b34de 100644 --- a/src/core/libraries/np_trophy/np_trophy.cpp +++ b/src/core/libraries/np_trophy/np_trophy.cpp @@ -2,13 +2,13 @@ // SPDX-License-Identifier: GPL-2.0-or-later #include +#include #include "common/logging/log.h" #include "common/path_util.h" #include "common/slot_vector.h" #include "core/libraries/error_codes.h" #include "core/libraries/libs.h" -#include "externals/pugixml/src/pugixml.hpp" #include "np_trophy.h" #include "trophy_ui.h" diff --git a/src/core/libraries/np_trophy/trophy_ui.cpp b/src/core/libraries/np_trophy/trophy_ui.cpp index d23500102..6f60e8f9a 100644 --- a/src/core/libraries/np_trophy/trophy_ui.cpp +++ b/src/core/libraries/np_trophy/trophy_ui.cpp @@ -66,7 +66,7 @@ void TrophyUI::Draw() { ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoInputs)) { Text("Trophy earned!"); - TextWrapped(currentTrophyInfo.trophyName.c_str()); + TextWrapped("%s", currentTrophyInfo.trophyName.c_str()); } End(); }