aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--global-functions7
1 files changed, 3 insertions, 4 deletions
diff --git a/global-functions b/global-functions
index 1dd4642..f5682be 100644
--- a/global-functions
+++ b/global-functions
@@ -888,6 +888,9 @@
:if ([ :typeof $ScriptLockOrder ] = "nothing") do={
:set ScriptLockOrder [ :toarray "" ];
}
+ :if ([ :typeof ($ScriptLockOrder->$Script) ] = "nothing") do={
+ :set ($ScriptLockOrder->$Script) [ :toarray "" ];
+ }
:local JobCount do={
:local Script [ :tostr $1 ];
@@ -928,10 +931,6 @@
:global ScriptLockOrder;
- :if ([ :typeof ($ScriptLockOrder->$Script) ] = "nothing") do={
- :set ($ScriptLockOrder->$Script) [ :toarray "" ];
- }
-
:while (true) do={
:local Pos [ :len ($ScriptLockOrder->$Script) ];
:set ($ScriptLockOrder->$Script->$Pos) $Add;