diff options
author | rubidium <rubidium@openttd.org> | 2010-01-06 20:49:24 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-01-06 20:49:24 +0000 |
commit | 1967084bc3800615e6584d9d3115e0109a0e40da (patch) | |
tree | cb79c4ab76d138c6e0caf9a086f1bb8862dda899 /src/network/network_gamelist.cpp | |
parent | 9c4b5e32fa11691946738d82cf8b0879c3574d00 (diff) | |
download | openttd-1967084bc3800615e6584d9d3115e0109a0e40da.tar.xz |
(svn r18746) -Fix [FS#3489]: clear the cached NewGRFs of a server when receiving a reply instead of when requesting the information. With slow/unstable network connections it would look like the NewGRF settings button went randomly missing.
Diffstat (limited to 'src/network/network_gamelist.cpp')
-rw-r--r-- | src/network/network_gamelist.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_gamelist.cpp b/src/network/network_gamelist.cpp index f0a3fb5c9..62fbc822b 100644 --- a/src/network/network_gamelist.cpp +++ b/src/network/network_gamelist.cpp @@ -49,8 +49,8 @@ static void NetworkGameListHandleDelayedInsert() NetworkGameList *item = NetworkGameListAddItem(ins_item->address); if (item != NULL) { - ClearGRFConfigList(&item->info.grfconfig); if (StrEmpty(item->info.server_name)) { + ClearGRFConfigList(&item->info.grfconfig); memset(&item->info, 0, sizeof(item->info)); strecpy(item->info.server_name, ins_item->info.server_name, lastof(item->info.server_name)); strecpy(item->info.hostname, ins_item->info.hostname, lastof(item->info.hostname)); |