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:
1 parent
c8e84b6e2e
commit
83fac1585e
1 file changed
+2
-2
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user