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

Fix configurable reward for non-query scenrio

This commit is contained in:
nordsoft 2023-05-02 14:45:42 +04:00
parent c4cf2a100b
commit 96420bfc05

View File

@ -3612,9 +3612,9 @@ bool CGameHandler::buildStructure(ObjectInstanceID tid, BuildingID requestedID,
sendAndApply(&fw);
if(t->visitingHero)
visitCastleObjects(t, t->visitingHero);
objectVisited(t, t->visitingHero);
if(t->garrisonHero)
visitCastleObjects(t, t->garrisonHero);
objectVisited(t, t->garrisonHero);
checkVictoryLossConditionsForPlayer(t->tempOwner);
return true;