Skip to content

Commit

Permalink
Move the previous item selection fix from cmd0.c into game-cmd.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
non committed Nov 24, 2010
1 parent 3c19402 commit adfc451
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/cmd0.c
Expand Up @@ -686,9 +686,6 @@ static bool textui_process_key(unsigned char c)
/* Get item */
item_tester_hook = act->selector.filter;

/* Reset in order to start looking in the defualt place */
p_ptr->command_wrk = 0;

if (!get_item(&item, act->selector.prompt,
act->selector.noop, c, act->selector.mode))
return TRUE;
Expand Down
3 changes: 3 additions & 0 deletions src/game-cmd.c
Expand Up @@ -382,6 +382,9 @@ void process_command(cmd_context ctx, bool no_request)
{
game_command *cmd;

/* Reset so that when selecting items, we look in the default location */
p_ptr->command_wrk = 0;

/* If we've got a command to process, do it. */
if (cmd_get(ctx, &cmd, !no_request) == 0)
{
Expand Down

0 comments on commit adfc451

Please sign in to comment.