Skip to content

Commit

Permalink
Networked MP replay: move to end before returning to play mode (#2508)
Browse files Browse the repository at this point in the history
This appears to fix an assertion failure I got while trying to reproduce
#2508.

Note that #2508 is a different bug (an unhandled exception rather than an
assertion failure) and this commit doesn't fix it.
  • Loading branch information
jyrkive committed Feb 18, 2018
1 parent cafb650 commit e84a772
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hotkey/hotkey_handler_sp.cpp
Expand Up @@ -325,6 +325,8 @@ void playsingle_controller::hotkey_handler::replay_exit()
{
if(!playsingle_controller_.is_networked_mp()) {
resources::recorder->delete_upcoming_commands();
} else {
resources::recorder->set_to_end();
}
playsingle_controller_.set_player_type_changed();
}

0 comments on commit e84a772

Please sign in to comment.