Skip to content

Commit

Permalink
craft engine does not affect battlescape preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Finnik723 committed Nov 4, 2024
1 parent 3d634f1 commit 6c0c4f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Battlescape/AbortMissionState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ AbortMissionState::AbortMissionState(SavedBattleGame *battleGame, BattlescapeSta
_btnOk->onMouseClick((ActionHandler)&AbortMissionState::btnOkClick);
_btnOk->onKeyboardPress((ActionHandler)&AbortMissionState::btnOkClick, Options::keyOk);
bool noAbort = false;
if (_game->getMod()->isFTAGame())
if (_game->getMod()->isFTAGame() && !_battleGame->isPreview())
{
if (craft)
{
Expand Down

0 comments on commit 6c0c4f6

Please sign in to comment.