1
0
Fork 0

Cleaned up a couple compiler warnings.

This commit is contained in:
curt 2002-03-11 15:41:39 +00:00
parent bd6a57a002
commit 9436f68f56
2 changed files with 6 additions and 6 deletions

View file

@ -75,7 +75,7 @@ FGFX::init()
_sound.push_back(sound);
}
for (i = 0; i < _sound.size(); i++ ) {
for (i = 0; i < (int)_sound.size(); i++ ) {
_sound[i]->init();
}
}
@ -93,7 +93,7 @@ FGFX::unbind ()
void
FGFX::update (int dt)
{
for (int i = 0; i < _sound.size(); i++ )
for (unsigned int i = 0; i < _sound.size(); i++ )
_sound[i]->update(dt);
}

View file

@ -64,13 +64,13 @@ static const struct {
};
FGSound::FGSound(const SGPropertyNode * node)
: _name(""),
: _node(node),
_sample(NULL),
_factor(1.0),
_active(false),
_mode(FGSound::ONCE),
_type(FGSound::LEVEL),
_node(node)
_name(""),
_factor(1.0)
{
}
@ -138,7 +138,7 @@ FGSound::init()
//
// set volume properties
//
int i;
unsigned int i;
float v = 0.0;
vector<const SGPropertyNode *> kids = _node->getChildren("volume");
for (i = 0; (i < kids.size()) && (i < FGSound::MAXPROP); i++) {