diff options
Diffstat (limited to 'npc/functions/input.txt')
-rw-r--r-- | npc/functions/input.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/npc/functions/input.txt b/npc/functions/input.txt index 1ccfc0578..1bce63792 100644 --- a/npc/functions/input.txt +++ b/npc/functions/input.txt @@ -72,6 +72,9 @@ function script menuint2 { .@vals=0; .@menustr$=""; + if (!(getdatatype(.@ar$) & DATATYPE_VAR)) + Exception("Inadequate argument type", RB_DEFAULT|RB_ISFATAL); + if (getarraysize(.@ar$) % 2 != 0) Exception("Invalid array size", RB_DEFAULT|RB_ISFATAL); |