X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=misc.c;h=6db040a1fb3c0f755b3a741d5d9646845df698e5;hp=6132b92150bd36756d56bdbab8bd1a02d5fad41d;hb=5f4df123b40b8d9c01b88bc506ee5bb8b3c82d70;hpb=9475552be419a8a018a27d524f6cdf64c0e26e4b diff --git a/misc.c b/misc.c index 6132b92..6db040a 100644 --- a/misc.c +++ b/misc.c @@ -511,6 +511,7 @@ static void tokenize(char* raw, command_t *cmd) /* populate command with parsed vocabulary metadata */ get_vocab_metadata(cmd->word[0].raw, &(cmd->word[0].id), &(cmd->word[0].type)); get_vocab_metadata(cmd->word[1].raw, &(cmd->word[1].id), &(cmd->word[1].type)); + cmd->state = TOKENIZED; } bool get_command_input(command_t *command) @@ -551,6 +552,7 @@ bool get_command_input(command_t *command) command->word[1].id); #endif + command->state = GIVEN; return true; }