mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
fix: PVS-Studio V1048
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
parent
ba2fe68ec6
commit
5369507938
1 changed files with 2 additions and 2 deletions
|
|
@ -145,12 +145,12 @@ void ALStream::update(double delta) {
|
||||||
}
|
}
|
||||||
auto speaker = audio::get_speaker(this->speaker);
|
auto speaker = audio::get_speaker(this->speaker);
|
||||||
if (speaker == nullptr) {
|
if (speaker == nullptr) {
|
||||||
speaker = 0;
|
speaker = 0; //FIXME: Not used
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ALSpeaker* alspeaker = dynamic_cast<ALSpeaker*>(speaker); //FIXME: Potentional null pointer
|
ALSpeaker* alspeaker = dynamic_cast<ALSpeaker*>(speaker); //FIXME: Potentional null pointer
|
||||||
if (alspeaker->stopped) { //-V522
|
if (alspeaker->stopped) { //-V522
|
||||||
speaker = 0;
|
speaker = 0; //FIXME: Not used
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue