1
0

replacing C-style cast by dynamic_cast

This commit is contained in:
mgueydan 2013-09-08 12:37:14 +02:00
parent b4bb255344
commit ead953898d

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 ++)
{