properly reset parser on new message/choice
This commit is contained in:
parent
71f66426c5
commit
328b3a5c21
|
@ -384,11 +384,12 @@ impl ParserState {
|
|||
goto: self.goto.clone(),
|
||||
}
|
||||
}
|
||||
fn spawn_chatbranch(&self, commands: &mut Commands) {
|
||||
fn spawn_chatbranch(&mut self, commands: &mut Commands) {
|
||||
if self.stores_item {
|
||||
debug!("{:#?}", self.as_chatbranch());
|
||||
commands.spawn(self.as_chatbranch());
|
||||
}
|
||||
self.reset_message();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue