Revert "Use std::exchange instead of two swaps"

This reverts commit aa19223c65d8693dbaa8d8c9fa0c129d77eed4de.
This commit is contained in:
Chris Robinson 2022-02-22 00:20:16 -08:00
parent 1f9390f6f6
commit 9f44d99642

View File

@ -1477,7 +1477,8 @@ void SetSourceiv(ALsource *Source, ALCcontext *Context, SourceProp prop,
/* Source is now Static */
Source->SourceType = AL_STATIC;
oldlist = std::exchange(Source->mQueue, std::move(newlist));
Source->mQueue.swap(oldlist);
Source->mQueue.swap(newlist);
}
else
{