Skip to content

Commit

Permalink
Fixed potential segfault in Sfx_Init() - if the current audio driver …
Browse files Browse the repository at this point in the history
…does not provide an interface for SFX playback.
  • Loading branch information
danij committed Dec 29, 2008
1 parent 0476234 commit 771f70d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doomsday/engine/portable/src/s_sfx.c
Expand Up @@ -1076,6 +1076,11 @@ boolean Sfx_Init(void)
(audiointerface_sfx_generic_t*) &audiodExternalISFX : 0);
}

if(!iSFX)
{ // No interface for SFX playback.
return false;
}

// This is based on the scientific calculations that if the DOOM marine
// is 56 units tall, 60 is about two meters.
//// \fixme Derive from the viewheight.
Expand Down

0 comments on commit 771f70d

Please sign in to comment.