1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 07:16:38 +02:00

Replaced some static_casts related to modes with dynamic_cast - its a bit safer

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2715 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Adam-
2009-12-23 08:41:22 +00:00
parent f82640af7c
commit 80cbac3769
6 changed files with 23 additions and 23 deletions
+1 -1
View File
@@ -713,7 +713,7 @@ char ModeManager::GetStatusChar(char Value)
cm = it->second;
if (cm->Type == MODE_STATUS)
{
cms = static_cast<ChannelModeStatus *>(cm);
cms = dynamic_cast<ChannelModeStatus *>(cm);
if (Value == cms->Symbol)
{