From 70c2ecc2c4b58e4427f5e3f40b6f8d6528a50302 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 31 Jul 2020 13:07:37 -0300 Subject: Next attempt at this --- npc/functions/input.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'npc/functions/input.txt') 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); -- cgit v1.2.3-70-g09d2