Skip to content

Commit

Permalink
Fix error: control may reach end of non-void lambda
Browse files Browse the repository at this point in the history
If by_name and by_relation are both omitted, behave as if both were given: sort first by relation then by name.
  • Loading branch information
GregoryLundberg committed Nov 30, 2017
1 parent 3cce6d8 commit c764b8e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game_initialization/lobby_info.cpp
Expand Up @@ -405,6 +405,8 @@ void lobby_info::sort_users(bool by_name, bool by_relation)
if(by_relation) {
return u1->relation < u2->relation;
}

return true;
});
}

Expand Down

0 comments on commit c764b8e

Please sign in to comment.