diff --git a/src/core/libraries/np_trophy/trophy_ui.cpp b/src/core/libraries/np_trophy/trophy_ui.cpp index 4671a91e3..d23500102 100644 --- a/src/core/libraries/np_trophy/trophy_ui.cpp +++ b/src/core/libraries/np_trophy/trophy_ui.cpp @@ -11,7 +11,6 @@ using namespace ImGui; using namespace Libraries::NpTrophy; TrophyUI::TrophyUI() { - first_render = true; AddLayer(this); } @@ -68,10 +67,8 @@ void TrophyUI::Draw() { ImGuiWindowFlags_NoInputs)) { Text("Trophy earned!"); TextWrapped(currentTrophyInfo.trophyName.c_str()); - - End(); } + End(); } } - first_render = false; } \ No newline at end of file diff --git a/src/core/libraries/np_trophy/trophy_ui.h b/src/core/libraries/np_trophy/trophy_ui.h index a554a1028..d730aca57 100644 --- a/src/core/libraries/np_trophy/trophy_ui.h +++ b/src/core/libraries/np_trophy/trophy_ui.h @@ -20,7 +20,6 @@ struct TrophyInfo { }; class TrophyUI final : public ImGui::Layer { - bool first_render{false}; std::vector trophyQueue; public: