aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alEffect.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2007-12-17 19:10:22 -0800
committerChris Robinson <[email protected]>2007-12-17 19:10:22 -0800
commit879593242056b5ab6ec93a3dde057310907e43c7 (patch)
tree098bfceccfc0701d913420ce7bc14543ae5fc55f /OpenAL32/alEffect.c
parentbe50a5f992a32da16218f4c4dcf9f78e0ce847a6 (diff)
0 is a valid filter and effect name
Diffstat (limited to 'OpenAL32/alEffect.c')
-rw-r--r--OpenAL32/alEffect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alEffect.c b/OpenAL32/alEffect.c
index 09c3f181..66ba710a 100644
--- a/OpenAL32/alEffect.c
+++ b/OpenAL32/alEffect.c
@@ -146,7 +146,7 @@ AL_API ALboolean AL_APIENTRY alIsEffect(ALuint effect)
ProcessContext(Context);
- return (*list ? AL_TRUE : AL_FALSE);
+ return ((*list || !effect) ? AL_TRUE : AL_FALSE);
}
AL_API ALvoid AL_APIENTRY alEffecti(ALuint effect, ALenum param, ALint iValue)