Skip to content

Commit

Permalink
Update LabelValues.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphalaneous committed Oct 26, 2024
1 parent d37742f commit 2d8efe3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/LabelValues.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace LabelValues {
auto accountManager = GJAccountManager::get();
std::string username = accountManager->m_accountID == 0 ? "Signed Out" : accountManager->m_username;

return LABEL("username", username);
return LABEL("username", std::string(username));
}

static std::pair<std::string, rift::Value> getGameVersion() {
Expand Down Expand Up @@ -155,23 +155,23 @@ namespace LabelValues {
static std::pair<std::string, rift::Value> getLevelCreator() {
GJGameLevel* level = Utils::getLevel();
if (level) {
return LABEL("level_creator", level->m_creatorName);
return LABEL("level_creator", std::string(level->m_creatorName));
}
return LABEL("level_creator", "null");
}

static std::pair<std::string, rift::Value> getLevelName() {
GJGameLevel* level = Utils::getLevel();
if (level) {
return LABEL("level_name", level->m_levelName);
return LABEL("level_name", std::string(level->m_levelName));
}
return LABEL("level_name", "null");
}

static std::pair<std::string, rift::Value> getLevelDescription() {
GJGameLevel* level = Utils::getLevel();
if (level) {
return LABEL("level_description", level->m_levelDesc);
return LABEL("level_description", std::string(level->m_levelDesc));
}
return LABEL("level_description", "null");
}
Expand Down

0 comments on commit 2d8efe3

Please sign in to comment.