From d96cfcaeda32ada2d5e2eaa7d0885805b688e8bd Mon Sep 17 00:00:00 2001 From: Guillaume Jacquemin Date: Fri, 17 May 2019 18:16:51 +0200 Subject: [PATCH] Audio: apply mosra's suggestion. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Vladimír Vondruš --- src/Magnum/Audio/Source.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Audio/Source.cpp b/src/Magnum/Audio/Source.cpp index 79f4cfc15..cdd14546d 100644 --- a/src/Magnum/Audio/Source.cpp +++ b/src/Magnum/Audio/Source.cpp @@ -57,7 +57,7 @@ std::size_t Source::unqueueBuffers(Containers::ArrayView unqueuedIds(processedBuffers); alSourceUnqueueBuffers(_id, unqueuedIds.size(), unqueuedIds.data()); - auto isNotUnqueued = [&unqueuedIds](Containers::Reference buffer){ + auto isNotUnqueued = [&unqueuedIds](Buffer& buffer) { for(ALuint id : unqueuedIds) { if(buffer->id() == id) return false;