diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-07-31 13:07:37 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-07-31 13:07:37 -0300 |
commit | 70c2ecc2c4b58e4427f5e3f40b6f8d6528a50302 (patch) | |
tree | b756318c1c2fa27be07003ae2b5e2604d577d220 /npc | |
parent | e8a7e998a63553abc3ee855652f14b79a1aaac51 (diff) | |
download | serverdata-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.txt | 3 | ||||
-rw-r--r-- | npc/magic/forget.txt | 2 |
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 ""; |