summaryrefslogtreecommitdiff
path: root/src/common/console.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-09-15 17:52:21 +0200
committerHaru <haru@dotalux.com>2015-10-11 00:24:22 +0200
commitaa6b8fd27b3c9b7c75f584434cc994ae9f9b044a (patch)
tree0689b20274708fdc2fb610a9f6b8da4a33eb18b7 /src/common/console.c
parent53bbcf013e3260d67ab0a67624de40cf1312ff73 (diff)
downloadhercules-aa6b8fd27b3c9b7c75f584434cc994ae9f9b044a.tar.gz
hercules-aa6b8fd27b3c9b7c75f584434cc994ae9f9b044a.tar.bz2
hercules-aa6b8fd27b3c9b7c75f584434cc994ae9f9b044a.tar.xz
hercules-aa6b8fd27b3c9b7c75f584434cc994ae9f9b044a.zip
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 <haru@dotalux.com>
Diffstat (limited to 'src/common/console.c')
-rw-r--r--src/common/console.c2
1 files changed, 1 insertions, 1 deletions
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;