diff options
Diffstat (limited to 'al/source.cpp')
-rw-r--r-- | al/source.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/al/source.cpp b/al/source.cpp index 7c6e43f9..59ce5549 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -1477,8 +1477,7 @@ void SetSourceiv(ALsource *Source, ALCcontext *Context, SourceProp prop, /* Source is now Static */ Source->SourceType = AL_STATIC; - Source->mQueue.swap(oldlist); - Source->mQueue.swap(newlist); + oldlist = std::exchange(Source->mQueue, std::move(newlist)); } else { |