mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Remove custom casts
This commit is contained in:
@@ -3528,7 +3528,7 @@ void CGameHandler::objectVisitEnded(const CObjectVisitQuery & query)
|
||||
|
||||
bool CGameHandler::buildBoat(ObjectInstanceID objid, PlayerColor playerID)
|
||||
{
|
||||
const IShipyard *obj = IShipyard::castFrom(getObj(objid));
|
||||
const auto *obj = dynamic_cast<const IShipyard *>(getObj(objid));
|
||||
|
||||
if (obj->shipyardStatus() != IBoatGenerator::GOOD)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user