Fix DSradio bug in chat for clang users

This commit is contained in:
NepDisk 2025-06-28 22:58:55 -04:00
parent 6ac11da6e4
commit e2524356da

View file

@ -314,8 +314,11 @@ static void SetChannelsNum(void)
lumpnum_t S_GetSfxLumpNum(sfxinfo_t *sfx)
{
lumpnum_t sfxlump;
char dsname[10];
sfxlump = W_CheckNumForLongName(va("DS%s", sfx->name));
sprintf(dsname, "DS%s", sfx->name);
sfxlump = W_CheckNumForLongName(dsname);
if (sfxlump != LUMPERROR)
return sfxlump;