fix: PVS-Studio V1048
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user