From 8f6e0f97ec5543de8ae49f12046b5c893565778e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 17 Nov 2018 21:48:54 -0800 Subject: Try to clear up an MSVC warning --- OpenAL32/Include/alMain.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenAL32/Include/alMain.h') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index d06aeaf2..b5c86dc6 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -952,7 +952,7 @@ public: return *this; } - operator bool() const noexcept { return mCtx; } + operator bool() const noexcept { return mCtx != nullptr; } ALCcontext* operator->() noexcept { return mCtx; } ALCcontext* get() noexcept { return mCtx; } -- cgit v1.2.3