1
0
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:
Ivan Savenko
2025-03-14 17:07:30 +00:00
parent 1f502c0548
commit 745040def3
26 changed files with 189 additions and 152 deletions

View File

@ -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;