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(); }