diff options
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r-- | OpenAL32/Include/alMain.h | 6 |
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; \ } |