mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Access to heroes storage in CMap is now done via public methods
This commit is contained in:
@@ -1299,11 +1299,10 @@ void CGHeroInstance::attachToBoat(CGBoat* newBoat)
|
||||
{
|
||||
assert(newBoat);
|
||||
boat = newBoat;
|
||||
attachTo(const_cast<CGBoat&>(*boat));
|
||||
const_cast<CGBoat*>(boat)->hero = this;
|
||||
attachTo(*newBoat);
|
||||
newBoat->setBoardedHero(this);
|
||||
}
|
||||
|
||||
|
||||
void CGHeroInstance::deserializationFix()
|
||||
{
|
||||
artDeserializationFix(this);
|
||||
|
||||
Reference in New Issue
Block a user