From 29cd7135277dc3eed6f5778a3b21d14f0ce8b306 Mon Sep 17 00:00:00 2001 From: Medik Date: Tue, 17 Dec 2024 11:43:05 +0000 Subject: [PATCH] Links to .c_str(); --- M2TWEOP Code/M2TWEOP GUI/mainUI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/M2TWEOP Code/M2TWEOP GUI/mainUI.cpp b/M2TWEOP Code/M2TWEOP GUI/mainUI.cpp index 8db5ec6b..342e3ecc 100644 --- a/M2TWEOP Code/M2TWEOP GUI/mainUI.cpp +++ b/M2TWEOP Code/M2TWEOP GUI/mainUI.cpp @@ -159,11 +159,11 @@ namespace mainUI } if (ImGui::Button("Website", helpers::getScreen().centerXButton)) { - ShellExecuteA(NULL, "open", dataG::data.gameData.websiteLink, NULL, NULL, SW_SHOWNORMAL); + ShellExecuteA(NULL, "open", dataG::data.gameData.websiteLink.c_str(), NULL, NULL, SW_SHOWNORMAL); } if (ImGui::Button("Discord", helpers::getScreen().centerXButton)) { - ShellExecuteA(NULL, "open", dataG::data.gameData.discordServerLink;, NULL, NULL, SW_SHOWNORMAL); + ShellExecuteA(NULL, "open", dataG::data.gameData.discordServerLink.c_str(), NULL, NULL, SW_SHOWNORMAL); } ImGui::End();