From f40f69cb76cf074e97cd0050890805afc50358b6 Mon Sep 17 00:00:00 2001 From: mittorn Date: Sun, 29 Jul 2018 21:21:25 +0700 Subject: [PATCH] Try make clang happy again --- dlls/whandle.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/whandle.h b/dlls/whandle.h index 0352e663..0bdcbd75 100644 --- a/dlls/whandle.h +++ b/dlls/whandle.h @@ -37,13 +37,16 @@ public: Set(0); return 0; } + operator int () + { + return Get() != NULL; + } bool operator !=(EHBasePlayerItem &other) { return Get() != other.Get(); } - bool operator !=(my_nullptr_t &null) { return Get() != (edict_t*)0;