mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
fix: PVS-Studio V550
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
parent
3621e7ce1b
commit
ab28b4df70
4 changed files with 19 additions and 14 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue