Merge branch 'coffee-compiler/fix_server_list_panic' into 'master'

Fix crash on server list entry deletion

See merge request veloren/veloren!4540
This commit is contained in:
Marcel 2024-07-31 07:41:35 +00:00
commit 366cf18603
2 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Charm recipes can now be found in the Potions tab of the crafting menu
- Black minimap when some terrain blocks are deleted.
- Text overflow and flickering in the crafting menu.
- Crash when deleting entries from the server list.
## [0.16.0] - 2024-03-30

View File

@ -583,6 +583,7 @@ impl Controls {
Message::DeleteServer => {
if let Some(server_index) = self.selected_server_index {
events.push(Event::DeleteServer { server_index });
self.selected_server_index = None;
}
},
/* Note: Keeping in case we re-add the disclaimer */