From e252a100f7a2742d03253581514f43a45ca08315 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 12 Jan 2014 16:27:21 -0800 Subject: Minor non-functional cleanup --- OpenAL32/alFontsound.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'OpenAL32') diff --git a/OpenAL32/alFontsound.c b/OpenAL32/alFontsound.c index 9c2f4bf9..4a195c21 100644 --- a/OpenAL32/alFontsound.c +++ b/OpenAL32/alFontsound.c @@ -819,8 +819,8 @@ static ALsfmodulator *ALfontsound_getModStage(ALfontsound *self, ALsizei stage) AL_NONE }; ret = malloc(sizeof(*ret)); - InsertUIntMapEntry(&self->ModulatorMap, stage, ret); *ret = moddef; + InsertUIntMapEntry(&self->ModulatorMap, stage, ret); } return ret; } @@ -853,8 +853,8 @@ void ALfontsound_setModStagei(ALfontsound *self, ALCcontext *context, ALsizei st srcidx++; /* fall-through */ case AL_SOURCE0_TYPE_SOFT: - if(!(value == AL_UNORM_SOFT || value == AL_SNORM_SOFT || - value == AL_UNORM_REV_SOFT || value == AL_SNORM_REV_SOFT)) + if(!(value == AL_UNORM_SOFT || value == AL_UNORM_REV_SOFT || + value == AL_SNORM_SOFT || value == AL_SNORM_REV_SOFT)) SET_ERROR_AND_RETURN(context, AL_INVALID_VALUE); ALfontsound_getModStage(self, stage)->Source[srcidx].Type = value; break; @@ -863,8 +863,8 @@ void ALfontsound_setModStagei(ALfontsound *self, ALCcontext *context, ALsizei st srcidx++; /* fall-through */ case AL_SOURCE0_FORM_SOFT: - if(!(value == AL_LINEAR_SOFT || value == AL_CONVEX_SOFT || - value == AL_CONCAVE_SOFT || value == AL_SWITCH_SOFT)) + if(!(value == AL_LINEAR_SOFT || value == AL_CONCAVE_SOFT || + value == AL_CONVEX_SOFT || value == AL_SWITCH_SOFT)) SET_ERROR_AND_RETURN(context, AL_INVALID_VALUE); ALfontsound_getModStage(self, stage)->Source[srcidx].Form = value; break; -- cgit v1.2.3