summaryrefslogtreecommitdiff
path: root/npc/functions/input.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/input.txt')
-rw-r--r--npc/functions/input.txt3
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);