summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/src/lib.rs b/engine/src/lib.rs
index 9d836c0..db6ab94 100644
--- a/engine/src/lib.rs
+++ b/engine/src/lib.rs
@@ -20,8 +20,9 @@ pub use glfw::WindowSize;
#[derive(Debug)]
pub struct Engine
{
- window: Window,
+ /// Objects have to be dropped before window. Otherwise, UB.
objects: BTreeMap<ObjectId, Object>,
+ window: Window,
}
impl Engine