From dadf1339b57d76057b7a66dce7d3b7b2f7d796f6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 5 Sep 2011 23:12:33 +0200 Subject: dbUtils: pass player_control to findAddIn() Allow calling findAddIn() without a client object. --- src/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/command.c') diff --git a/src/command.c b/src/command.c index 3e60e0ac3..dfa3688e0 100644 --- a/src/command.c +++ b/src/command.c @@ -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"); -- cgit v1.2.3