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:
@@ -170,7 +170,7 @@ void ApplyGhNetPackVisitor::visitTradeOnMarketplace(TradeOnMarketplace & pack)
|
||||
{
|
||||
const CGObjectInstance * object = gh.getObj(pack.marketId);
|
||||
const CGHeroInstance * hero = gh.getHero(pack.heroId);
|
||||
const IMarket * market = IMarket::castFrom(object);
|
||||
const auto * market = dynamic_cast<const IMarket*>(object);
|
||||
|
||||
gh.throwIfWrongPlayer(&pack);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user