From 0fee20a4153bab97adf75ca21bfeb6b863da9be9 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 17 Mar 2010 20:16:02 -0700 Subject: Simplifiy verification loops --- OpenAL32/Include/alMain.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'OpenAL32/Include') 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; \ } -- cgit v1.2.3