Revert "Use std::exchange instead of two swaps"
This reverts commit aa19223c65d8693dbaa8d8c9fa0c129d77eed4de.
This commit is contained in:
parent
1f9390f6f6
commit
9f44d99642
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user