mirror of
https://github.com/onyx-and-iris/vmrcli.git
synced 2024-11-15 17:40:56 +00:00
return quickcommands + i
This commit is contained in:
parent
ff2970f4c5
commit
68c2022ad7
@ -97,9 +97,9 @@ struct quickcommand *command_in_quickcommands(const char *command_key, const str
|
||||
{
|
||||
for (int i = 0; i < n; i++)
|
||||
{
|
||||
if (strncmp(command_key, quickcommands[i].name, strlen(command_key)) == 0)
|
||||
if (strcmp(command_key, quickcommands[i].name) == 0)
|
||||
{
|
||||
return (struct quickcommand *)&quickcommands[i];
|
||||
return (struct quickcommand *)(quickcommands + i);
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user