From a726f6decd8066f84475fbadddf4802b481179a7 Mon Sep 17 00:00:00 2001 From: Tobias Kohlbau Date: Tue, 2 Jan 2018 13:04:08 +0100 Subject: [PATCH] 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 --- src/openrct2-ui/windows/ServerList.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openrct2-ui/windows/ServerList.cpp b/src/openrct2-ui/windows/ServerList.cpp index 79221574c6..62f0d2cfbd 100644 --- a/src/openrct2-ui/windows/ServerList.cpp +++ b/src/openrct2-ui/windows/ServerList.cpp @@ -350,7 +350,8 @@ static void window_server_list_textinput(rct_window *w, rct_widgetindex widgetIn case WIDX_ADD_SERVER: { std::lock_guard guard(_mutex); - add_server_entry(text); + server_entry * entry = add_server_entry(text); + entry->favourite = true; sort_servers(); server_list_save_server_entries(); }