fix format error

This commit is contained in:
2023-06-04 12:42:58 +02:00
parent 193e4db651
commit 051c9d8744

View File

@@ -27,7 +27,7 @@ void TowerPlacePopup::Render() {
ImGui::BeginChild(std::to_string(i).c_str(), ImVec2(m_TowerPopupTileWidth, m_TowerPopupTileHeight), true); 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::SameLine();
ImGui::SetCursorPosX(m_TowerPopupTileWidth - 10 - ImGui::CalcTextSize("(?)").x); ImGui::SetCursorPosX(m_TowerPopupTileWidth - 10 - ImGui::CalcTextSize("(?)").x);
@@ -35,7 +35,7 @@ void TowerPlacePopup::Render() {
if (ImGui::IsItemHovered()) { if (ImGui::IsItemHovered()) {
ImGui::BeginTooltip(); ImGui::BeginTooltip();
ImGui::Text(towerInfo.GetDescription().c_str()); ImGui::Text("%s", towerInfo.GetDescription().c_str());
ImGui::EndTooltip(); ImGui::EndTooltip();
} }