Replay: Don't disable the "Point of view" button after reset

Fixes #3107

(cherry-picked from commit fb88f40b61eb541f227e2ed62b148ba33c042e44)
This commit is contained in:
josteph 2018-06-23 17:33:14 +00:00 committed by Jyrki Vesterinen
parent bf2d7d53e6
commit 9e9e1e800f

View File

@ -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();
}