From aee13cb81a5fa701e6640dec178ee60eb9bd97bd Mon Sep 17 00:00:00 2001 From: francy51 Date: Tue, 16 Jun 2026 15:44:37 -0400 Subject: [PATCH] fix(game): initialize AiConfig resource in AiPlugin Register AiConfig alongside AiStateMachine so the resource is available before the perception/state-transition systems read it. --- apps/game/src/gameplay/ai/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/game/src/gameplay/ai/mod.rs b/apps/game/src/gameplay/ai/mod.rs index 922b193..5bbd77b 100644 --- a/apps/game/src/gameplay/ai/mod.rs +++ b/apps/game/src/gameplay/ai/mod.rs @@ -35,7 +35,8 @@ pub struct AiPlugin; impl Plugin for AiPlugin { fn build(&self, app: &mut App) { - app.init_resource::() + app.init_resource::() + .init_resource::() .add_event::() .add_event::() // AI spawning systems - run when entering in-game state