From 0953e0ca83688a055c5ca0e200e959668ae2f5a3 Mon Sep 17 00:00:00 2001 From: Baoulettes Date: Sun, 29 May 2022 18:40:21 +0200 Subject: [PATCH] should fix build --- libultraship/libultraship/SohImGuiImpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libultraship/libultraship/SohImGuiImpl.cpp b/libultraship/libultraship/SohImGuiImpl.cpp index 2f09bddec..019adabf9 100644 --- a/libultraship/libultraship/SohImGuiImpl.cpp +++ b/libultraship/libultraship/SohImGuiImpl.cpp @@ -112,9 +112,9 @@ namespace SohImGui { return fmin(fmax(value,min),max); } - void Tooltip(std::string text) { + void Tooltip(const char* text) { if (ImGui::IsItemHovered()) - ImGui::SetTooltip("%s", text.c_str()); + ImGui::SetTooltip("%s", text); } void ImGuiWMInit() {