mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-13 01:20:34 +02:00
Access to heroes storage in CMap is now done via public methods
This commit is contained in:
@ -45,8 +45,8 @@ uint32_t MapRendererBaseContext::getObjectRotation(ObjectInstanceID objectID) co
|
||||
{
|
||||
const auto * boat = dynamic_cast<const CGBoat *>(obj);
|
||||
|
||||
if(boat->hero)
|
||||
return boat->hero->moveDir;
|
||||
if(boat->getBoardedHero())
|
||||
return boat->getBoardedHero()->moveDir;
|
||||
return boat->direction;
|
||||
}
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user