From e5811586450a8818f46f7d668afbfbcb42c08037 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 20 May 2014 10:00:34 -0400 Subject: [PATCH] Fix two compile warnings in access.cpp on newer compiles --- src/access.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/access.cpp b/src/access.cpp index 6ccca0fed..0c0713c49 100644 --- a/src/access.cpp +++ b/src/access.cpp @@ -151,7 +151,7 @@ ChanAccess::~ChanAccess() if (it != this->ci->access->end()) this->ci->access->erase(it); - if (nc != NULL) + if (*nc != NULL) nc->RemoveChannelReference(this->ci); else { @@ -164,7 +164,7 @@ ChanAccess::~ChanAccess() void ChanAccess::SetMask(const Anope::string &m, ChannelInfo *c) { - if (nc != NULL) + if (*nc != NULL) nc->RemoveChannelReference(this->ci); else if (!this->mask.empty()) {