properly reset parser on new message/choice

This commit is contained in:
yuni 2024-03-20 06:20:58 +01:00
parent 71f66426c5
commit 328b3a5c21

View file

@ -384,11 +384,12 @@ impl ParserState {
goto: self.goto.clone(), goto: self.goto.clone(),
} }
} }
fn spawn_chatbranch(&self, commands: &mut Commands) { fn spawn_chatbranch(&mut self, commands: &mut Commands) {
if self.stores_item { if self.stores_item {
debug!("{:#?}", self.as_chatbranch()); debug!("{:#?}", self.as_chatbranch());
commands.spawn(self.as_chatbranch()); commands.spawn(self.as_chatbranch());
} }
self.reset_message();
} }
} }