diff options
Diffstat (limited to 'OpenAL32/alAuxEffectSlot.c')
-rw-r--r-- | OpenAL32/alAuxEffectSlot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c index edd29fb2..f34f4d09 100644 --- a/OpenAL32/alAuxEffectSlot.c +++ b/OpenAL32/alAuxEffectSlot.c @@ -94,7 +94,7 @@ AL_API ALvoid AL_APIENTRY alGenAuxiliaryEffectSlots(ALsizei n, ALuint *effectslo slot->ClickRemoval[j] = 0.0f; slot->PendingClicks[j] = 0.0f; } - slot->refcount = 0; + slot->ref = 0; } } @@ -125,7 +125,7 @@ AL_API ALvoid AL_APIENTRY alDeleteAuxiliaryEffectSlots(ALsizei n, ALuint *effect SlotsValid = AL_FALSE; break; } - else if(EffectSlot->refcount > 0) + else if(EffectSlot->ref != 0) { alSetError(Context, AL_INVALID_NAME); SlotsValid = AL_FALSE; |