diff options
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/modules.h b/include/modules.h index f76a1f58a..600b3ce8c 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1219,7 +1219,7 @@ class CallBack : public Timer } }; -template<typename T> +template<typename T, typename U = T> class service_reference : public dynamic_reference<T> { Anope::string name; @@ -1238,7 +1238,7 @@ class service_reference : public dynamic_reference<T> } if (!this->ref) { - this->ref = Service<T>::FindService(this->name); + this->ref = static_cast<T *>(Service<U>::FindService(this->name)); if (this->ref) this->ref->AddReference(this); } |