summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-07-31 13:07:37 -0300
committerJesusaves <cpntb1@ymail.com>2020-07-31 13:07:37 -0300
commit70c2ecc2c4b58e4427f5e3f40b6f8d6528a50302 (patch)
treeb756318c1c2fa27be07003ae2b5e2604d577d220 /npc/functions
parente8a7e998a63553abc3ee855652f14b79a1aaac51 (diff)
downloadserverdata-70c2ecc2c4b58e4427f5e3f40b6f8d6528a50302.tar.gz
serverdata-70c2ecc2c4b58e4427f5e3f40b6f8d6528a50302.tar.bz2
serverdata-70c2ecc2c4b58e4427f5e3f40b6f8d6528a50302.tar.xz
serverdata-70c2ecc2c4b58e4427f5e3f40b6f8d6528a50302.zip
Next attempt at this
Diffstat (limited to 'npc/functions')
-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);