ace2_inner: Fix argument bug in execCommand()

This fixes a bug introduced in commit
c38c34bef4.
This commit is contained in:
Richard Hansen 2021-01-20 23:17:11 -05:00 committed by John McLear
parent aeedaac04e
commit 10a91825fc

View file

@ -649,12 +649,10 @@ function Ace2Inner() {
const execCommand = (cmd, ...args) => {
cmd = cmd.toLowerCase();
// TODO: Rhansen to check this logic.
const cmdArgs = args;
if (CMDS[cmd]) {
inCallStackIfNecessary(cmd, () => {
fastIncorp(9);
CMDS[cmd](CMDS, ...cmdArgs);
CMDS[cmd](...args);
});
}
};