summaryrefslogtreecommitdiff
path: root/npc
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
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')
-rw-r--r--npc/functions/input.txt3
-rw-r--r--npc/magic/forget.txt2
2 files changed, 4 insertions, 1 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);
diff --git a/npc/magic/forget.txt b/npc/magic/forget.txt
index ab7f16ecb..f000c82bd 100644
--- a/npc/magic/forget.txt
+++ b/npc/magic/forget.txt
@@ -27,7 +27,7 @@ function script ForgetfulNPC {
}
}
freeloop(false);
- menuint2(".@forget$");
+ menuint2(.@forget$);
if (!@menuret)
close;
mes "";