Skip to content

Commit

Permalink
Replay: Don't disable the "Point of view" button after reset
Browse files Browse the repository at this point in the history
Fixes #3107
  • Loading branch information
jostephd authored and jyrkive committed Jun 24, 2018
1 parent cc2366c commit 29dd57b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/playsingle_controller.cpp
Expand Up @@ -209,7 +209,9 @@ void playsingle_controller::play_scenario_main_loop()
resources::gameboard->teams()[i].set_local(local_players[i]);
}
play_scenario_init();
replay_.reset(new replay_controller(*this, false, ex.level, [this](){ on_replay_end(false); } ));
if (replay_ == nullptr) {
replay_.reset(new replay_controller(*this, false, ex.level, [this](){ on_replay_end(false); } ));
}
if(ex.start_replay) {
replay_->play_replay();
}
Expand Down

0 comments on commit 29dd57b

Please sign in to comment.