fix: PVS-Studio V550

Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
Vyacheslav Ivanov 2024-08-03 22:27:11 +03:00 • committed by Pugemon
parent 3621e7ce1b
commit ab28b4df70
No known key found for this signature in database
GPG key ID: 472FA343B3CC3287
4 changed files with 19 additions and 14 deletions

View file

@ -261,7 +261,7 @@ void ALSpeaker::setPitch(float pitch) {
}
bool ALSpeaker::isLoop() const {
return AL::getSourcei(source, AL_LOOPING) == AL_TRUE;
return AL::getSourcei(source, AL_LOOPING) == AL_TRUE; //-V550
}
void ALSpeaker::setLoop(bool loop) {
@ -343,7 +343,7 @@ void ALSpeaker::setRelative(bool relative) {
}
bool ALSpeaker::isRelative() const {
return AL::getSourcei(source, AL_SOURCE_RELATIVE) == AL_TRUE;
return AL::getSourcei(source, AL_SOURCE_RELATIVE) == AL_TRUE; //-V550
}
int ALSpeaker::getPriority() const {