Fix ccode return

This commit is contained in:
Vortrex
2021-01-21 04:44:46 -06:00
parent e197644215
commit 22362acafc

View File

@@ -329,7 +329,7 @@ function clientRunCodeFail(client, returnTo, code) {
// ---------------------------------------------------------------------------
function clientRunCodeSuccess(client, returnTo, returnVal, code) {
let returnClient = getClients()[returnTo];
let returnClient = getClientFromIndex(returnTo);
if(!returnClient) {
return false;
}