summaryrefslogtreecommitdiff
path: root/npc/custom/eAAC_Scripts/disguiser.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/custom/eAAC_Scripts/disguiser.txt')
-rw-r--r--npc/custom/eAAC_Scripts/disguiser.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/npc/custom/eAAC_Scripts/disguiser.txt b/npc/custom/eAAC_Scripts/disguiser.txt
index 218de0196..ce5978d95 100644
--- a/npc/custom/eAAC_Scripts/disguiser.txt
+++ b/npc/custom/eAAC_Scripts/disguiser.txt
@@ -164,6 +164,9 @@ function script PXC_DoMenu {
//Fire our menu
set @menu, select($@menu$);
+ if(@menu > getarg(1) || @menu < 1)
+ end;
+
//Zero deliminated (off-by-one errors sux0r!!!)
set @menu, @menu-1;