fix format error
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user