mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Remove custom casts
This commit is contained in:
@@ -58,7 +58,7 @@ namespace AIPathfinding
|
||||
{
|
||||
if(obj->ID != Obj::TOWN) //towns were handled in the previous loop
|
||||
{
|
||||
if(const IShipyard * shipyard = IShipyard::castFrom(obj))
|
||||
if(const auto * shipyard = dynamic_cast<const IShipyard *>(obj))
|
||||
shipyards.push_back(shipyard);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user