From 051c9d87449312c3091c9c02700e495e61c5bd47 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Sun, 4 Jun 2023 12:42:58 +0200 Subject: [PATCH] fix format error --- src/render/gui/TowerPlacePopup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/render/gui/TowerPlacePopup.cpp b/src/render/gui/TowerPlacePopup.cpp index 5a38276..028e598 100644 --- a/src/render/gui/TowerPlacePopup.cpp +++ b/src/render/gui/TowerPlacePopup.cpp @@ -27,7 +27,7 @@ void TowerPlacePopup::Render() { ImGui::BeginChild(std::to_string(i).c_str(), ImVec2(m_TowerPopupTileWidth, m_TowerPopupTileHeight), true); - ImGui::Text(towerInfo.GetName().c_str()); + ImGui::Text("%s", towerInfo.GetName().c_str()); ImGui::SameLine(); ImGui::SetCursorPosX(m_TowerPopupTileWidth - 10 - ImGui::CalcTextSize("(?)").x); @@ -35,7 +35,7 @@ void TowerPlacePopup::Render() { if (ImGui::IsItemHovered()) { ImGui::BeginTooltip(); - ImGui::Text(towerInfo.GetDescription().c_str()); + ImGui::Text("%s", towerInfo.GetDescription().c_str()); ImGui::EndTooltip(); }