Skip to content

Commit a579b93

Browse files
committed
Merge pull request OpenXcom#544 from redv/delete_8th_base
fix: Not restored the button "NewBase" when you delete the 8th base.
2 parents f9cf38a + 7bd24d7 commit a579b93

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/Basescape/BasescapeState.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,7 @@ void BasescapeState::init()
245245
s += Text::formatFunding(_game->getSavedGame()->getFunds());
246246
_txtFunds->setText(s);
247247

248-
if (_game->getSavedGame()->getBases()->size() == 8)
249-
{
250-
_btnNewBase->setVisible(false);
251-
}
248+
_btnNewBase->setVisible(_game->getSavedGame()->getBases()->size() < 8);
252249
}
253250

254251
/**

0 commit comments

Comments
 (0)