From aa6b8fd27b3c9b7c75f584434cc994ae9f9b044a Mon Sep 17 00:00:00 2001 From: Haru Date: Tue, 15 Sep 2015 17:52:21 +0200 Subject: Fixed an issue preventing correct nesting of console commands into subcategories - The issue prevented the creation of multiple commands in the same subcategory through console->input->addCommand (i.e. "foo:bar:baz" and "foo:bar:quux" would instead create "foo:bar:baz" and "foo:quux") Signed-off-by: Haru --- src/common/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/common/console.c b/src/common/console.c index 7633471c0..c8ca4ae87 100644 --- a/src/common/console.c +++ b/src/common/console.c @@ -319,7 +319,7 @@ void console_parse_create(char *name, CParseFunc func) cmd = entry; continue; } - // FIXME: This should advance cmd to VECTOR_INDEX(cmd->u.children, i) + cmd = VECTOR_INDEX(cmd->u.children, i); } Assert_retv(cmd->type != CPET_CATEGORY); cmd->type = CPET_FUNCTION; -- cgit v1.2.3-60-g2f50