Skip to content

Commit 6ed4a5c

Browse files
committed
Memorial CTDs with Storage Limits set to yes
1 parent 6a231fa commit 6ed4a5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Basescape/SoldierInfoState.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ void SoldierInfoState::edtSoldierChange(Action *action)
565565
void SoldierInfoState::btnOkClick(Action *)
566566
{
567567
_game->popState();
568-
if (_game->getSavedGame()->getMonthsPassed() > -1 && Options::storageLimitsEnforced && _base->storesOverfull())
568+
if (_game->getSavedGame()->getMonthsPassed() > -1 && Options::storageLimitsEnforced && _base != 0 && _base->storesOverfull())
569569
{
570570
_game->pushState(new SellState(_game, _base));
571571
_game->pushState(new ErrorMessageState(_game, tr("STR_STORAGE_EXCEEDED").arg(_base->getName()).c_str(), _palette, Palette::blockOffset(15)+1, "BACK01.SCR", 0));

0 commit comments

Comments
 (0)