X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=actions.c;h=c5f06e59f2b96d16039caa78defd156fae6e7b02;hp=b059e8228622e506c9a36b51a013cb9c5aaafd63;hb=c3a2816821512b59a09866a594a9bec699193271;hpb=25077d0b4eb1d6a85140c01092be7203ca64a49c diff --git a/actions.c b/actions.c index b059e82..c5f06e5 100644 --- a/actions.c +++ b/actions.c @@ -899,7 +899,7 @@ static int throw (FILE *cmdin, struct command_t *command) rspeak(spk); return GO_CLEAROBJ; } - if (command->obj >= MINTRS && command->obj <= MAXTRS && AT(TROLL)) { + if (object_descriptions[command->obj].is_treasure && AT(TROLL)) { spk = TROLL_SATISFIED; /* Snarf a treasure for the troll. */ DROP(command->obj, 0);