mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
* refactoring
* fixed bug 1143 * some work on campaigns
This commit is contained in:
@@ -3583,7 +3583,8 @@ void CBonusSelection::selectBonus( int id )
|
||||
{
|
||||
// Total redraw is needed because the border around the bonus images
|
||||
// have to be undrawn/drawn.
|
||||
if (id != sInfo.campState->currentBonusID())
|
||||
if (!vstd::contains(sInfo.campState->chosenCampaignBonuses, sInfo.campState->currentMap)
|
||||
|| id != sInfo.campState->currentBonusID())
|
||||
{
|
||||
sInfo.campState->chosenCampaignBonuses[sInfo.campState->currentMap] = id;
|
||||
GH.totalRedraw();
|
||||
|
||||
Reference in New Issue
Block a user