mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Suggested edit
This commit is contained in:
parent
9c184b60e4
commit
af0542db90
@ -2623,7 +2623,7 @@ impl Hud {
|
|||||||
|
|
||||||
if !self.show.ui {
|
if !self.show.ui {
|
||||||
// Optimization: skip maintaining UI when it's off.
|
// Optimization: skip maintaining UI when it's off.
|
||||||
return std::mem::replace(&mut self.events, Vec::new());
|
return std::mem::take(&mut self.events);
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(maybe_id) = self.to_focus.take() {
|
if let Some(maybe_id) = self.to_focus.take() {
|
||||||
|
Loading…
Reference in New Issue
Block a user