aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alMain.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-17 21:48:54 -0800
committerChris Robinson <[email protected]>2018-11-17 21:48:54 -0800
commit8f6e0f97ec5543de8ae49f12046b5c893565778e (patch)
treedb0c28ceacce72811ef8b8951fce03221cd7f1f4 /OpenAL32/Include/alMain.h
parent20e62aa959f922a408312a4ed8c365e9e976510d (diff)
Try to clear up an MSVC warning
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r--OpenAL32/Include/alMain.h2
1 files changed, 1 insertions, 1 deletions
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; }