1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Revert apparently broken changes from commits 96420bf, 92dcfd1, c4cf2a1

This commit is contained in:
Dydzio 2023-07-11 21:22:24 +02:00
parent b74d608709
commit afb9bfc180

View File

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