summaryrefslogtreecommitdiff
path: root/modules/commands/cs_access.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/cs_access.cpp')
-rw-r--r--modules/commands/cs_access.cpp4
1 files changed, 2 insertions, 2 deletions
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<const AccessChanAccess &, const ChanAccess &>(other).level;
+ return this->level > anope_dynamic_static_cast<const AccessChanAccess *>(&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<const AccessChanAccess &, const ChanAccess &>(other).level;
+ return this->level < anope_dynamic_static_cast<const AccessChanAccess *>(&other)->level;
}
};