summaryrefslogtreecommitdiff
path: root/npc/009-4/torches.txt
diff options
context:
space:
mode:
authorStefan Beller <stefanbeller@googlemail.com>2011-02-07 20:30:49 +0100
committerStefan Beller <stefanbeller@googlemail.com>2011-02-07 20:30:49 +0100
commit662bedbce382bee522d3056a47475ed680bf36b6 (patch)
tree17e0247ade1bd6478f70e68cb5bd56f8262b4534 /npc/009-4/torches.txt
parent0099e62514d50aee63b912ad17c4fba819d04541 (diff)
downloadserverdata-662bedbce382bee522d3056a47475ed680bf36b6.tar.gz
serverdata-662bedbce382bee522d3056a47475ed680bf36b6.tar.bz2
serverdata-662bedbce382bee522d3056a47475ed680bf36b6.tar.xz
serverdata-662bedbce382bee522d3056a47475ed680bf36b6.zip
fix a bounds check for orum/waric
Diffstat (limited to 'npc/009-4/torches.txt')
-rw-r--r--npc/009-4/torches.txt8
1 files changed, 4 insertions, 4 deletions
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;