Multiplayer: save manually added servers

Adding a server via "Add Server" should handle them
as favorites as otherwise the list is not saved locally and
each server is lost after game restart.

Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de>
This commit is contained in:
Tobias Kohlbau authored and Michael Steenbeek committed 2018-01-02 13:04:08 +01:00
1 parent 6336e8c719
commit a726f6decd
1 file changed
+2 -1
+2 -1
View File
@@ -350,7 +350,8 @@ static void window_server_list_textinput(rct_window *w, rct_widgetindex widgetIn
case WIDX_ADD_SERVER:
{
std::lock_guard<std::mutex> guard(_mutex);
add_server_entry(text);
server_entry * entry = add_server_entry(text);
entry->favourite = true;
sort_servers();
server_list_save_server_entries();
}