Erik Hofman:
Adds some small updates to the sound code (add vector clearing in destructors).
This commit is contained in:
parent
4c93c8a070
commit
0ab97746c8
3 changed files with 5 additions and 3 deletions
|
@ -45,8 +45,7 @@ FGFX::FGFX ()
|
|||
|
||||
FGFX::~FGFX ()
|
||||
{
|
||||
for (unsigned int i = 0; i < _sound.size(); i++ )
|
||||
delete _sound[i];
|
||||
_sound.clear();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -83,6 +83,9 @@ FGSound::~FGSound()
|
|||
if (_condition)
|
||||
delete _condition;
|
||||
|
||||
_volume.clear();
|
||||
_pitch.clear();
|
||||
|
||||
delete _sample;
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
#include "soundmgr.hxx"
|
||||
|
||||
static const double MAX_TRANSIT_TIME = 0.1; // 10 ms.
|
||||
static const double MAX_TRANSIT_TIME = 0.1; // 100 ms.
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue