From f0e0cd4f652a8d7bcca1f831ea06e65baab1a5e4 Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 16 Oct 2026 15:27:57 +0200 Subject: [PATCH] fix compile with discordrpc --- src/discord.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/discord.c b/src/discord.c index a5e5f59c9..9e297eea7 100644 --- a/src/discord.c +++ b/src/discord.c @@ -684,7 +684,7 @@ void DRPC_UpdatePresence(void) // Character image while (supportedSkins[checkSkin] != NULL) { - if (fastcmp(skins[players[consoleplayer].skin].name, supportedSkins[checkSkin])) + if (fastcmp(skins[players[consoleplayer].skin]->name, supportedSkins[checkSkin])) { snprintf(charimg, 21, "char%s", supportedSkins[checkSkin]); discordPresence.smallImageKey = charimg; @@ -701,7 +701,7 @@ void DRPC_UpdatePresence(void) discordPresence.smallImageKey = "charcustom"; } - snprintf(charname, 28, "Character: %s", skins[players[consoleplayer].skin].realname); + snprintf(charname, 28, "Character: %s", skins[players[consoleplayer].skin]->realname); discordPresence.smallImageText = charname; // Character name }