summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 7620f92..0daef91 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -30,6 +30,7 @@ use crate::{
sim::{
cell::Cell,
cell_manager::manager::CellManager,
+ entity::EntityId,
lib::force::{apply_bullet, apply_explosion},
rb_manager::DebugRenderMode,
sim_manager::{SimCtx, SimManager},
@@ -310,7 +311,7 @@ impl ApplicationHandler for App {
KeyCode::KeyC => sim.cell_manager = CellManager::from_default_size(),
KeyCode::KeyP => sim.particle_manager.particles = Vec::new(),
KeyCode::KeyV => {
- let ids: Vec<u32> = sim.entities.keys().cloned().collect();
+ let ids: Vec<EntityId> = sim.entities.keys().cloned().collect();
for id in ids {
sim.destroy_entity(id);
}