Fix type inference for older compilers

This commit is contained in:
Gunter Labes 2020-09-24 16:40:51 +02:00 committed by GitHub
parent 111a15ecb1
commit 1a557ec319
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -818,7 +818,7 @@ bool server::is_login_allowed(socket_ptr socket, const simple_wml::node* const l
std::shared_ptr<game> last_sent;
for(const auto& record : player_connections_.get<game_t>()) {
auto g_ptr { record.get_game() };
auto g_ptr = record.get_game();
if(g_ptr != last_sent) {
// Note: This string is parsed by the client to identify lobby join messages!
if(g_ptr->started()) {