fix a pointer reference.
This commit is contained in:
parent
fc71333bdd
commit
11d15b4513
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ void FGAIPlane::Render(const string& refname, const float volume, bool repeating
|
||||||
size_t len;
|
size_t len;
|
||||||
void* buf = vPtr->WriteMessage(pending_transmission, &len);
|
void* buf = vPtr->WriteMessage(pending_transmission, &len);
|
||||||
if(voice && (volume > 0.05)) {
|
if(voice && (volume > 0.05)) {
|
||||||
SGSoundSample* simple = new SGSoundSample(buf, len, 8000 );
|
SGSoundSample* simple = new SGSoundSample(&buf, len, 8000 );
|
||||||
simple->set_volume(volume);
|
simple->set_volume(volume);
|
||||||
_sgr->add(simple, refname);
|
_sgr->add(simple, refname);
|
||||||
_sgr->play(refname, repeating);
|
_sgr->play(refname, repeating);
|
||||||
|
|
Loading…
Reference in a new issue