mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Remove ConstTransitivePtr from hero and town instances
This commit is contained in:
@@ -81,7 +81,7 @@ void CGarrisonSlot::hover (bool on)
|
||||
const bool isHeroOnMap = owner->upperArmy() // Hero is not a visitor and not a garrison defender
|
||||
&& owner->upperArmy()->ID == Obj::HERO
|
||||
&& (!owner->lowerArmy() || owner->lowerArmy()->ID == Obj::HERO) // one hero or we are in the Heroes exchange window
|
||||
&& !(static_cast<const CGHeroInstance*>(owner->upperArmy()))->inTownGarrison;
|
||||
&& !(static_cast<const CGHeroInstance*>(owner->upperArmy()))->isGarrisoned();
|
||||
|
||||
if(isHeroOnMap)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user