diff options
| author | HampusM <hampus@hampusmat.com> | 2026-10-30 05:38:31 +0100 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-10-30 05:52:48 +0100 |
| commit | 2d977a7b3089193080365c66219914081a9347ae (patch) | |
| tree | 181f48608e35bc0e11d372f9d7d6d997e54d173e /engine/src/windowing.rs | |
| parent | 3b94659adf7fb25999c2815cb903f71eb1087896 (diff) | |
Diffstat (limited to 'engine/src/windowing.rs')
| -rw-r--r-- | engine/src/windowing.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engine/src/windowing.rs b/engine/src/windowing.rs index 46f281f..b76d942 100644 --- a/engine/src/windowing.rs +++ b/engine/src/windowing.rs @@ -23,7 +23,6 @@ use winit::keyboard::PhysicalKey; use winit::window::{Window as WinitWindow, WindowId as WinitWindowId}; use crate::ecs::actions::Actions; -use crate::ecs::component::Component; use crate::ecs::event::component::{Added, Changed, EventMatchExt, Removed}; use crate::ecs::pair::{ChildOf, Pair}; use crate::ecs::phase::{Phase, PRE_UPDATE as PRE_UPDATE_PHASE}; @@ -112,7 +111,7 @@ fn handle_window_creation_ready( unreachable!(); }; - if ent.has_component(Window::id()) || ent.has_component(WindowClosed::id()) { + if ent.has_component::<Window>() || ent.has_component::<WindowClosed>() { continue; } |
