Skip to content

Commit

Permalink
Added a NULL check.
Browse files Browse the repository at this point in the history
  • Loading branch information
captainys committed Jan 14, 2021
1 parent a301d12 commit 555b5e7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,10 @@ YSRESULT YsSoundPlayer::SoundData::PreparePlay(YsSoundPlayer &player)
{
return YSOK;
}
if(nullptr==player.api->dSound8)
{
return YSERR;
}

api->CreateBuffer(player.api->dSound8,*this);
if(nullptr!=api->dSoundBuf)
Expand Down

0 comments on commit 555b5e7

Please sign in to comment.