mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-05 00:49:09 +02:00
Remove ConstTransitivePtr from hero and town instances
This commit is contained in:
@ -132,7 +132,7 @@ double MapRendererBaseContext::objectTransparency(ObjectInstanceID objectID, con
|
||||
{
|
||||
const auto * hero = dynamic_cast<const CGHeroInstance *>(object);
|
||||
|
||||
if(hero->inTownGarrison)
|
||||
if(hero->isGarrisoned())
|
||||
return 0;
|
||||
|
||||
if(hero->boat)
|
||||
|
Reference in New Issue
Block a user