fix assertion in synced_context::ask_server_choice

This commit is contained in:
gfgtdf 2016-08-04 17:53:51 +02:00 committed by GitHub
parent 3cbf249b66
commit e75325a399

View file

@ -282,9 +282,12 @@ void synced_context::server_choice::send_request() const
config synced_context::ask_server_choice(const server_choice& sch)
{
if (!is_synced()) {
ERR_REPLAY << "Trying to ask the server for a '" << sch.name() << "' choice in a unsynced context, doing the choice locally. This can casue OOS.\n";
return sch.local_choice();
}
set_is_simultaneously();
resources::controller->increase_server_request_number();
assert(is_synced());
const bool is_mp_game = resources::controller->is_networked_mp();
bool did_require = false;