diff options
author | Adam <Adam@anope.org> | 2010-07-27 21:31:13 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-07-27 21:31:13 -0400 |
commit | 4b870cc5f9671201dfad6fa836847cdd40aef519 (patch) | |
tree | 34aec3d880a22a8a828e5f5a7917e583cee92023 /modules/protocol/bahamut.cpp | |
parent | 66c0e280ee9d4940fe5a477d3e933ba4221e35db (diff) |
Added debug_cast which uses dynamic_cast on debug builds, and static_cast on release builds
Diffstat (limited to 'modules/protocol/bahamut.cpp')
-rw-r--r-- | modules/protocol/bahamut.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/protocol/bahamut.cpp b/modules/protocol/bahamut.cpp index d80fb953b..9e28b1f9f 100644 --- a/modules/protocol/bahamut.cpp +++ b/modules/protocol/bahamut.cpp @@ -319,7 +319,7 @@ int anope_event_sjoin(const Anope::string &source, int ac, const char **av) if (m->Type != MODE_STATUS) continue; - ChannelMode *cm = dynamic_cast<ChannelMode *>(m); + ChannelMode *cm = debug_cast<ChannelMode *>(m); for (CUserList::const_iterator uit = c->users.begin(), uit_end = c->users.end(); uit != uit_end; ++uit) { |