1
0
Fork 0

Erik Hofman:

Adds some small updates to the sound code (add vector clearing in destructors).
This commit is contained in:
curt 2003-02-11 20:26:42 +00:00
parent 4c93c8a070
commit 0ab97746c8
3 changed files with 5 additions and 3 deletions

View file

@ -45,8 +45,7 @@ FGFX::FGFX ()
FGFX::~FGFX ()
{
for (unsigned int i = 0; i < _sound.size(); i++ )
delete _sound[i];
_sound.clear();
}
void

View file

@ -83,6 +83,9 @@ FGSound::~FGSound()
if (_condition)
delete _condition;
_volume.clear();
_pitch.clear();
delete _sample;
}

View file

@ -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.
/**