dbUtils: pass player_control to findAddIn()

Allow calling findAddIn() without a client object.
This commit is contained in:
Max Kellermann
2011-09-05 23:12:33 +02:00
parent c2c4228722
commit dadf1339b5
3 changed files with 14 additions and 9 deletions

View File

@@ -956,7 +956,7 @@ handle_findadd(struct client *client, int argc, char *argv[])
return COMMAND_RETURN_ERROR;
}
ret = findAddIn(client, NULL, list);
ret = findAddIn(client->player_control, NULL, list);
if (ret == -1)
command_error(client, ACK_ERROR_NO_EXIST,
"directory or file not found");