X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;ds=sidebyside;f=main.c;h=b788c618e65428352c0a5f9be4a619ecb194baaa;hb=551838cea217e3d9df11dcaea52c42b02449de91;hp=5f7cd3fe2788d49ac449491d68ddc2ddad590acf;hpb=d51da9d0b8b623cecb096eec91b599cfc3e4dd41;p=open-adventure.git diff --git a/main.c b/main.c index 5f7cd3f..b788c61 100644 --- a/main.c +++ b/main.c @@ -1014,9 +1014,7 @@ static bool do_command() listobjects(); L2012: - command.verb = 0; game.oldobj = command.obj; - command.obj = 0; L2600: checkhints(); @@ -1047,6 +1045,7 @@ L2600: return (false); if (word_count(input) > 2) { rspeak(TWO_WORDS); + free(input); continue; } if (strcmp(input, "") != 0)