2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 17:04:55 +00:00

Merge pull request #193 from lioncash/explicit

CToken: Make operator bool explicit
This commit is contained in:
2020-03-08 18:02:30 -07:00
committed by GitHub

View File

@@ -74,7 +74,7 @@ class CToken {
public:
/* Added to test for non-null state */
operator bool() const { return x0_objRef != nullptr; }
explicit operator bool() const { return x0_objRef != nullptr; }
void Unlock();
void Lock();
bool IsLocked() const { return x4_lockHeld; }