mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Pass pointer to actual caller in showBlockingDialog callWith
Fixes activation of all rewardable buildings in town on blocking dialog answer
This commit is contained in:
@@ -244,7 +244,7 @@ void CGDwelling::onHeroVisit( const CGHeroInstance * h ) const
|
||||
else
|
||||
bd.text.replaceLocalString(EMetaText::ARRAY_TXT, 173 + (int)Slots().begin()->second->getQuantityID()*3);
|
||||
bd.text.replaceName(*Slots().begin()->second);
|
||||
cb->showBlockingDialog(&bd);
|
||||
cb->showBlockingDialog(this, &bd);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -280,7 +280,7 @@ void CGDwelling::onHeroVisit( const CGHeroInstance * h ) const
|
||||
bd.flags |= BlockingDialog::SAFE_TO_AUTOACCEPT;
|
||||
}
|
||||
|
||||
cb->showBlockingDialog(&bd);
|
||||
cb->showBlockingDialog(this, &bd);
|
||||
}
|
||||
|
||||
void CGDwelling::newTurn(vstd::RNG & rand) const
|
||||
|
||||
Reference in New Issue
Block a user