mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
This commit is contained in:
parent
b74d608709
commit
afb9bfc180
@ -3628,7 +3628,7 @@ bool CGameHandler::buildStructure(ObjectInstanceID tid, BuildingID requestedID,
|
||||
sendAndApply(&fw);
|
||||
|
||||
if(t->visitingHero)
|
||||
objectVisited(t, t->visitingHero);
|
||||
visitCastleObjects(t, t->visitingHero);
|
||||
if(t->garrisonHero)
|
||||
visitCastleObjects(t, t->garrisonHero);
|
||||
|
||||
@ -4465,7 +4465,8 @@ bool CGameHandler::hireHero(const CGObjectInstance *obj, ui8 hid, PlayerColor pl
|
||||
|
||||
if(t)
|
||||
{
|
||||
objectVisited(t, nh);
|
||||
visitCastleObjects(t, nh);
|
||||
giveSpells (t,nh);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user