diff options
-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 ""; |