OSDN Git Service

Bug fix: command menu is unusable in pet command
authorhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 20 Feb 2013 13:04:35 +0000 (13:04 +0000)
committerhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 20 Feb 2013 13:04:35 +0000 (13:04 +0000)
src/cmd5.c

index d723fac..154bbb4 100644 (file)
@@ -2359,7 +2359,6 @@ void do_cmd_pet(void)
        int                     powers[36];
        cptr                    power_desc[36];
        bool                    flag, redraw;
-       int                     ask;
        char                    choice;
        char                    out_val[160];
        int                     pet_ctr;
@@ -2692,6 +2691,8 @@ void do_cmd_pet(void)
        /* Get a command from the user */
        while (!flag)
        {
+               int ask = TRUE;
+
                if (choice == ESCAPE) choice = ' ';
                else if (!get_com(out_val, &choice, TRUE)) break;