From 6e8d2bf09dbc349df5e2d2094a83a60c6309b76b Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 1 Nov 2013 05:19:48 -0400 Subject: Attempt #3 --- modules/commands/cs_access.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/commands/cs_access.cpp') diff --git a/modules/commands/cs_access.cpp b/modules/commands/cs_access.cpp index 9a6c0d886..e78bac824 100644 --- a/modules/commands/cs_access.cpp +++ b/modules/commands/cs_access.cpp @@ -49,7 +49,7 @@ class AccessChanAccess : public ChanAccess if (this->provider != other.provider) return ChanAccess::operator>(other); else - return this->level > anope_dynamic_static_cast(other).level; + return this->level > anope_dynamic_static_cast(&other)->level; } bool operator<(const ChanAccess &other) const anope_override @@ -57,7 +57,7 @@ class AccessChanAccess : public ChanAccess if (this->provider != other.provider) return ChanAccess::operator<(other); else - return this->level < anope_dynamic_static_cast(other).level; + return this->level < anope_dynamic_static_cast(&other)->level; } }; -- cgit