From 5f0b8c076b40f8eca67e2745367c731f803914f4 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 2 Dec 2026 11:09:58 +0400 Subject: feat(ui): select units from the strategic warbot roster --- crates/fparkan-runtime/src/unit_spawn.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'crates/fparkan-runtime/src/unit_spawn.rs') diff --git a/crates/fparkan-runtime/src/unit_spawn.rs b/crates/fparkan-runtime/src/unit_spawn.rs index 09345192..7af5db10 100644 --- a/crates/fparkan-runtime/src/unit_spawn.rs +++ b/crates/fparkan-runtime/src/unit_spawn.rs @@ -60,11 +60,9 @@ pub(super) fn spawn_prepared_unit( .behavior_control_groupings .push(crate::project_mission_behavior_control_grouping(&table)); mission.control_device_tables.push(table); - mission.mission_events.register_unit( - world, - handle, - draft.unit_dat_header_flags.expect("prepared reserve"), - ); + let class = draft.unit_dat_header_flags.expect("prepared reserve"); + mission.mission_events.register_unit(world, handle, class); + mission.unit_serials.register(handle, OwnerId(clan), class); mission.note_clan_registration(OwnerId(clan), handle); Ok(handle) } -- cgit v1.2.3