diff --git a/lib/mapObjects/CGCreature.cpp b/lib/mapObjects/CGCreature.cpp index 40edde0ca..aaf0b3b8c 100644 --- a/lib/mapObjects/CGCreature.cpp +++ b/lib/mapObjects/CGCreature.cpp @@ -171,6 +171,7 @@ void CGCreature::onHeroVisit( const CGHeroInstance * h ) const //ask if player agrees to pay gold BlockingDialog ynd(true,false); ynd.player = h->tempOwner; + ynd.components.emplace_back(ComponentType::RESOURCE, GameResID(GameResID::GOLD), action); std::string tmp = VLC->generaltexth->advobtxt[90]; boost::algorithm::replace_first(tmp, "%d", std::to_string(getStackCount(SlotID(0)))); boost::algorithm::replace_first(tmp, "%d", std::to_string(action));