diff --git a/engine/source/discord/DiscordGame.h b/engine/source/discord/DiscordGame.h index 46df9bbd..05ab41d5 100644 --- a/engine/source/discord/DiscordGame.h +++ b/engine/source/discord/DiscordGame.h @@ -79,7 +79,7 @@ class DiscordGame StringTableEntry getUsername(int charLimit) { char* buf = new char[charLimit + 1]; - int minLength = getMin(charLimit, mUsername.length()); + int minLength = getMin(charLimit, (int)mUsername.length()); for (int i = 0; i < minLength; i++) buf[i] = mUsername[i]; buf[minLength] = '\0';