From 707a2e942860143d933540641ea2cc63e574f386 Mon Sep 17 00:00:00 2001 From: Cvolton Date: Thu, 7 Dec 2023 01:09:36 +0100 Subject: [PATCH] fix BetterInfoOnline on mac --- src/managers/BetterInfoOnline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/managers/BetterInfoOnline.cpp b/src/managers/BetterInfoOnline.cpp index 57b12b4..e294b64 100644 --- a/src/managers/BetterInfoOnline.cpp +++ b/src/managers/BetterInfoOnline.cpp @@ -29,7 +29,7 @@ void BetterInfoOnline::loadScores(int accountID, bool force){ web::AsyncWebRequest() .userAgent("") .postRequest() - .postFields(fmt::format("gameVersion=21&binaryVersion=35&gdw=0&accountID={}&udid={}&type=relative&secret=Wmfd2893gb7", accountID, GameManager::sharedState()->m_playerUDID)) + .postFields(fmt::format("gameVersion=21&binaryVersion=35&gdw=0&accountID={}&udid={}&type=relative&secret=Wmfd2893gb7", accountID, std::string(GameManager::sharedState()->m_playerUDID))) .fetch("http://www.boomlings.com/database/getGJScores20.php") .text() .then([this, accountID](const std::string& response) { @@ -119,4 +119,4 @@ void BetterInfoOnline::sendScoreToProfilePage(cocos2d::CCArray* scores, int acco break; } } -} \ No newline at end of file +}