aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 8434d429..0caccd1b 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1405,8 +1405,7 @@ ALC_API ALCvoid ALC_APIENTRY alcDestroyContext(ALCcontext *context)
{
if(Device->Contexts[i] == context)
{
- memmove(&Device->Contexts[i], &Device->Contexts[i+1],
- (Device->NumContexts-i-1) * sizeof(*Device->Contexts));
+ Device->Contexts[i] = Device->Contexts[Device->NumContexts-1];
break;
}
}