replacing C-style cast by dynamic_cast

master
mgueydan 2013-09-08 12:37:14 +02:00
parent b4bb255344
commit ead953898d
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ void cChunk::CollectMobCensus(cMobCensus& toFill)
{
try
{
cMonster& Monster = (cMonster&)(**itr);
cMonster& Monster = dynamic_cast<cMonster&>(**itr);
currentPosition = Monster.GetPosition();
for (std::list<const Vector3d*>::const_iterator itr2 = playerPositions.begin(); itr2 != playerPositions.end(); itr2 ++)
{