From 662bedbce382bee522d3056a47475ed680bf36b6 Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Mon, 7 Feb 2011 20:30:49 +0100 Subject: fix a bounds check for orum/waric --- npc/009-4/torches.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'npc/009-4/torches.txt') diff --git a/npc/009-4/torches.txt b/npc/009-4/torches.txt index a00ab95c..c7897da1 100644 --- a/npc/009-4/torches.txt +++ b/npc/009-4/torches.txt @@ -14,7 +14,7 @@ L_Error: function script SetTorchColor { if (@Torch < 0 || @Torch > 2) goto L_Error; - if (@Color < 0 || @Color > 12) goto L_Error2; + if (@Color < 1 || @Color > 12) goto L_Error2; set @Mask, (15 << (4 * @Torch)); set OrumQuestTorch, (OrumQuestTorch & (~(@Mask))) | @Color << (4 * @Torch); @@ -124,7 +124,7 @@ L_Color_Loop: "Add Yellow Powder", L_Use_Yellow, "Add Blue Powder", L_Use_Blue, "Leave it alone.", -; - + mes "The flame flickers as if it's laughing at you.."; close; @@ -207,7 +207,7 @@ L_Color_Loop: "Add Yellow Powder", L_Use_Yellow, "Add Blue Powder", L_Use_Blue, "Leave it alone.", -; - + mes "The flame flickers as if it's laughing at you.."; close; @@ -296,7 +296,7 @@ L_Color_Loop: "Add Yellow Powder", L_Use_Yellow, "Add Blue Powder", L_Use_Blue, "Leave it alone.", -; - + mes "The flame flickers as if it's laughing at you.."; close; -- cgit v1.2.3-60-g2f50