Skip to content

Commit

Permalink
Fixed|Audio: Crash if listener is positioned at a degenerate BSP leaf
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Apr 30, 2014
1 parent 8185191 commit a39861a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/client/src/audio/s_sfx.cpp
Expand Up @@ -502,9 +502,9 @@ void Sfx_ListenerUpdate()
AudioDriver_SFX()->Listenerv(SFXLP_VELOCITY, vec);

// Reverb effects. Has the current sector cluster changed?
if(listenerCluster != &Mobj_Cluster(*listener))
if(listenerCluster != Mobj_ClusterPtr(*listener))
{
listenerCluster = &Mobj_Cluster(*listener);
listenerCluster = Mobj_ClusterPtr(*listener);

// It may be necessary to recalculate the reverb properties...
AudioEnvironmentFactors const &envFactors = listenerCluster->reverb();
Expand Down

0 comments on commit a39861a

Please sign in to comment.