S_UpdateSounds: init listenmobj

not sure why but ubsan did complain about it sometimes
S_StartSoundAtVolume also just memsets it so why not do the same here anyways
This commit is contained in:
alufolie91 committed 2026-04-29 17:49:42 +02:00
1 parent c8e84b6e2e
commit 83fac1585e
1 file changed
+2 -2
+2 -2
View File
@@ -688,12 +688,12 @@ void S_UpdateSounds(void)
if (dedicated || sound_disabled)
return;
memset(listenmobj, 0, sizeof(listenmobj));
for (i = 0; i <= splitscreen; i++)
{
player_t *player = &players[displayplayers[i]];
listenmobj[i] = NULL;
if (player->awayviewtics)
{
listenmobj[i] = player->awayviewmobj;