X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=misc.c;h=c6733d5fe285f6cc419122c594e93f9f60bea673;hb=9758883ea24c7eb5e4a339b6e2427862c1457add;hp=d04760266c45903d7897ac100e5091df67069d18;hpb=8d409c6b3b911746df45aed2d88db1b37232bbff;p=open-adventure.git diff --git a/misc.c b/misc.c index d047602..c6733d5 100644 --- a/misc.c +++ b/misc.c @@ -221,7 +221,7 @@ static char* get_input(void) // Print a blank line printf("\n"); - char* input = ""; + char* input; for (;;) { input = myreadline(input_prompt); @@ -602,7 +602,7 @@ loc_t put(obj_t object, loc_t where, int pval) * negated game.prop values for the repository objects. */ { move(object, where); - return STASHED(pval); + return (-1) - pval;; // Needs to stay sinchronized with STASHED } void carry(obj_t object, loc_t where)