Skip to content

Commit

Permalink
Replace crappy workaround with slightly less crappy workaround (maybe)
Browse files Browse the repository at this point in the history
  • Loading branch information
thearst3rd committed Dec 22, 2021
1 parent 04a09e2 commit 3d8af26
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions engine/source/sfx/dsound/sfxDSVoice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ SFXDSVoice::SFXDSVoice( SFXDSBuffer *buffer,

SFXDSVoice::~SFXDSVoice()
{
setPitch(1.0f);
SAFE_RELEASE( mDSBuffer3D );
mBuffer->releaseVoice( &mDSBuffer );

Expand Down
1 change: 0 additions & 1 deletion engine/source/sfx/sfxSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ class SFXSystem
#define SFX_DELETE( source ) \
if ( source ) \
{ \
source->setPitch(1.0f); \
source->deleteObject(); \
source = NULL; \
} \
Expand Down

0 comments on commit 3d8af26

Please sign in to comment.