aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-03-17 20:16:02 -0700
committerChris Robinson <[email protected]>2010-03-17 20:16:02 -0700
commit0fee20a4153bab97adf75ca21bfeb6b863da9be9 (patch)
tree06a4ac1055203df7407f0823d1a87b40e59332eb
parent186e0f3b040308152175d3f6dca0efca8e3a8b2c (diff)
Simplifiy verification loops
-rw-r--r--OpenAL32/Include/alMain.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index a3a777d1..ade664e3 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -382,12 +382,8 @@ ALCcontext* ALCAPIENTRY alcGetThreadContext(void);
#define DECL_VERIFIER(name, type, field) \
static type* Verify##name(type *list, ALuint id) \
{ \
- while(list) \
- { \
- if(list->field == id) \
- break; \
+ while(list && list->field != id) \
list = list->next; \
- } \
return list; \
}