mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Fix for canRefuse flag in rewardable building
This commit is contained in:
parent
3f6cbc6312
commit
be6f6da397
@ -356,6 +356,9 @@ void CTownRewardableBuilding::heroLevelUpDone(const CGHeroInstance *hero) const
|
||||
|
||||
void CTownRewardableBuilding::blockingDialogAnswered(const CGHeroInstance *hero, ui32 answer) const
|
||||
{
|
||||
if(answer == 0)
|
||||
return; // player refused
|
||||
|
||||
if(visitors.find(hero->id) != visitors.end())
|
||||
return; // query not for this building
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user